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 jndi.properties file
then also the same error is raised
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
jnp.socket.factory=org.jnp.interfaces.TimedSocketFactory
jnp.timeout=0
jnp.socket.factory=0
Thanks in advance
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 jndi.properties file
then also the same error is raised
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
jnp.socket.factory=org.jnp.interfaces.TimedSocketFactory
jnp.timeout=0
jnp.socket.factory=0
Thanks in advance