aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes SocketTimeoutException: Read timed out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "SocketTimeoutException: Read timed out" Watch "SocketTimeoutException: Read timed out" New topic

SocketTimeoutException: Read timed out

Chirag Jakharia

Joined: Dec 03, 2003
Posts: 23
I have successfully deployed the bean on JBoss Server and prepared a client application but it throws Exception When it comes at ic.lookup() Statement
The Error Reason as shown by toString() Function is
javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment;nested exception is:
My Question is Where to set Timeout
I have tried writing the following properties in file
then also the same error is raised
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces

Thanks in advance
Sergiu Truta
Ranch Hand

Joined: Dec 16, 2003
Posts: 121
I'm using JBoss and in my test classes I initialize the Context like this:
java.util.Hashtable JNDIParm = new java.util.Hashtable();
JNDIParm.put(Context.PROVIDER_URL, "localhost");
return new InitialContext(JNDIParm);
Also, if you want to make any Remote interface available you have to add it here also... I'm walking the path...
Chirag Jakharia

Joined: Dec 03, 2003
Posts: 23
Thanks But I tried that by writing the following code
But it did not helped me the same thing then also
Don't get me started about those stupid light bulbs.
subject: SocketTimeoutException: Read timed out