[jboss-user] [JBoss Messaging] - How the Java client connects to JNDI of JBM 2.0 alpha remote

janylj do-not-reply at jboss.com
Thu Jul 17 14:50:19 EDT 2008


Hello,

I am checking out the JBM 2.0 alpha. Everything looks cool. I could run the example when the broker is localhost. However, how to connect the JNDI store using IP address instead of just localhost. For example, in the jndi.properties I have:

java.naming.provider.url=jnp://ipaddress:1099

Then I ran the same example program. I got

queueExample:
  |      [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: 172.16.1.218:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server 172.16.1.218:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 172.16.1.218:1099 [Root exception is java.net.ConnectException: Connection refused]]]
  |      [java] 	at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1601)
  |      [java] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:636)
  |      [java] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
  |      [java] 	at javax.naming.InitialContext.lookup(InitialContext.java:392)
  |      [java] 	at org.jboss.jms.example.QueueExample.main(QueueExample.java:53)
  |      [java] Caused by: javax.naming.CommunicationException: Failed to connect to server 172.16.1.218:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 172.16.1.218:1099 [Root exception is java.net.ConnectException: Connection refused]]
  |      [java] 	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:276)
  |      [java] 	at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1572)
  |      [java] 	... 4 more

Please advise. Thank you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165165#4165165

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165165



More information about the jboss-user mailing list