-
1. Re: CommunicationException: Receive timed out
jonlee May 27, 2003 10:19 AM (in response to vgotte)Looks like the client can't connect to the JBoss JNDI port for some reason.
Have you tried telneting to the port first to ensure that you can connect? If you can, but your client still gets timeouts, you might want to try the following JNDI settings as well:
jndiProps.setProperty("jnp.socketFactory", "org.jnp.interfaces.TimedSocketFactory");
jndiProps.setProperty("jnp.timeout", "0");
jndiProps.setProperty("jnp.sotimeout", "0");
I'm not sure that they are still applicable. We used them sometime during 2.4.x when we found what I think was a similar problem. It's all a bit vague now. I think we were connecting a HAHT app server to some JBoss EJB components - don't even ask.
Anway, hope it helps. -
2. Re: CommunicationException: Receive timed out
vgotte May 28, 2003 5:58 AM (in response to vgotte)OK. Thanks
-
3. Re: CommunicationException: Receive timed out
jonlee May 28, 2003 8:47 AM (in response to vgotte)Oops. Forgot to ask the obvious. Did you set the JNDI properties for the client?
Either in jndi.properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://jboss-server:1099
Or programmatically:
Properties jndiProps = new Properties();
jndiProps.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
jndiProps.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
jndiProps.setProperty("java.naming.provider.url","jnp://jboss-server:1099");
InitialContext ctx = new InitialContext(jndiProps);
etc ... -
4. Re: CommunicationException: Receive timed out
vgotte Jun 10, 2003 2:43 AM (in response to vgotte)Yes, all these properties was setted as you say.
Thanks again.