-
1. Re: javax.naming.CommunicationException. Root exception is
pra Sep 23, 2001 9:57 AM (in response to boxhead)Hi, it's looking as you are using the RMI connection factory. So I think I have been down the same path as you (ending up in having to read the sun RMI code).
One common problem with RMI is what name of the server it gets. This will be sent from the server to the client RMI classes, and there be used to connect to the server. If it gets a non valid hostname, the client will not be able to connect to the server.
You should define the java.rmi.server.hostname to the real hostname of your server, eh -Djava.rmi.server.hostname=my.real.hostname
For up to 2.4 put it in conf/default/jboss.properties.
With JBossMQ I have also sometime been forced to define the jndi in conf/default/jndi.properties to the real hostname to, eg:
java.naming.provider.url=my.real.hostname:1099
Be aware though that a sideeffect of this is that local optimized calles for EJB won't work.
Another way around it is to use the UIL connection factory. Since this is a oneway connection, there is no callback to the server.
But then again. Maybe you are experienting some other cind of problem.
//Peter -
2. Re: javax.naming.CommunicationException. Root exception is
boxhead Sep 23, 2001 1:40 PM (in response to boxhead)What about the EOFException issue? Is that just because 2.4.0 is unstable? Thanks for your help ...
-
3. Re: javax.naming.CommunicationException. Root exception is
boxhead Sep 23, 2001 1:41 PM (in response to boxhead)Also, with the client, it leads me to believe that a /conf/default/jboss.conf (.props) needs to exist on the client machine. Is this correct ?!
-
4. Re: javax.naming.CommunicationException. Root exception is
pra Sep 23, 2001 3:03 PM (in response to boxhead)> What about the EOFException issue? Is that just
> because 2.4.0 is unstable? Thanks for your help ...
The JBossMQ in 2.4.1 is much better than the one in 2.4.0. The EOF stuff seems to have plauged the 2.4.0 (but unfortunately I have also seen it in later version).
//Peter -
5. Re: javax.naming.CommunicationException. Root exception is
pra Sep 23, 2001 3:04 PM (in response to boxhead)> Also, with the client, it leads me to believe that a
> /conf/default/jboss.conf (.props) needs to exist on
> the client machine. Is this correct ?!
No it's not. Thats server only!
//Peter