[jboss-user] [JBoss Messaging] - Problem with Using Jboss Messaging

paradisonoir do-not-reply at jboss.com
Tue Apr 22 14:12:20 EDT 2008


Hi,

I am using my  Jboss Application Serer (Version: 4.2.2.GA) to run my JMS application. As long as I am using "jnp://localhost:1099", it works, but when I change localhost to the IP address ("jnp://132.205.93.311:1099") of the same machine, it gives me the following error. I also changed the jndi.properties like this:


Hashtable props = new Hashtable();
  |         
  | props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  |         props.put(Context.PROVIDER_URL, "jnp://132.205.93.311:1099");
  |         props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");


Error :
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 132.205.93.31:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timedout] [Root exception is javax.naming.CommunicationException: Failed to connect to server 132.205.93.31:1099 [Root exception is javax.naming.ServiceUnavailableEx
ception: Failed to connect to server 132.205.93.31:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]

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

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



More information about the jboss-user mailing list