org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable:

i have an application that having a jms client communicating with the jboss server (Topic) and sending messages .The jboss server is installed in a private ip machine and connected to the public ip machine in which the related ports are forwarded to the private ip machine . After that when communicating through the public ip from the external network i got all the access to the jboss(ejbs) except that of the Connection to the topic(durable).the exception thrown in the line

qcf.createTopicConnection();

the exception is

Thanks in advance

org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)

at org.jboss.mq.Connection.authenticate(Connection.java:1168)

at org.jboss.mq.Connection.<init>(Connection.java:255)

at org.jboss.mq.Connection.<init>(Connection.java:332)

at org.jboss.mq.SpyConnection.<init>(SpyConnection.java:66)

at org.jboss.mq.SpyConnectionFactory.createConnection(SpyConnectionFactory.java:87)

at org.jboss.mq.SpyConnectionFactory.createTopicConnection(SpyConnectionFactory.java:136)

[1175 byte] By [kinnana] at [2007-11-26 18:24:05]
# 1

hi try including the last two properties...best of luck

java.util.Properties properties = new Properties();

// set the properties of the connection

properties.put("Context.INITIAL_CONTEXT_FACTORY", "com.sap.engine.services.jndi.InitialContextFactoryImpl");

properties.put("Context.SECURITY_PRINCIPAL", "Administrator");

properties.put("Context SECURITY_CREDENTIALS", "admin_password");

// start initial context with the properties specified

InitialContext context = new InitialContext(properties);

facadea at 2007-7-9 5:58:08 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...