File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Problem with using Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem with using Jboss" Watch "Problem with using Jboss" New topic
Author

Problem with using Jboss

Amir Pourteymour
Ranch Hand

Joined: Mar 06, 2008
Posts: 45
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:


Code:



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]]]
Sunil Dixit
Ranch Hand

Joined: Sep 22, 2005
Posts: 46
Hi,

change props.put(Context.PROVIDER_URL, "jnp://132.205.93.311:1099"); to props.put(Context.PROVIDER_URL, "132.205.93.311");

Is should work ! In JBoss you are not suppose to use JNP and port number.

Cheers,
Sunil
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Originally posted by Amir Pourteymour:

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.


How are you starting JBoss? I guess, you are not using the -b option while starting JBoss. Start JBoss with the -b option as explained here


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with using Jboss