-
1. Re: Problem with JNDI
jmesnil Jun 30, 2010 4:00 AM (in response to cinto_qq)I don't understand your issue: these properties are to allow remote JMX management and are not related to JNDI at all...
Do you have a problem with JNDI or JMX?
What is the error message you got?
-
2. Re: Problem with JNDI
cinto_qq Jun 30, 2010 10:36 PM (in response to jmesnil)Hi Jeff,
I think I have misunderstood. I thought the settings are meant to startup the JNDI server.
I was testing my queue, and I got this error:"error in initialize : javax.naming.CommunicationException: Could not obtain connection to any of these urls: dlwb07v:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server server/ipaddress:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server server/ipaddress:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]". When I checked the server using "netstat -a", I found that the ports 1099 and 1098 are not open.
Could it be that my settings for Hornetq is incorrect?
Cinto
-
3. Re: Problem with JNDI
clebert.suconic Jun 30, 2010 11:50 PM (in response to cinto_qq)The JNDI is configured at the hornetq-beans.xml on the standalone:
look for this on hornetq-beans.xml
<bean name="JNDIServer"><property name="namingInfo"><inject bean="Naming"/></property><property name="port">1099</property><property name="bindAddress">localhost</property><property name="rmiPort">1098</property><property name="rmiBindAddress">localhost</property></bean> -
4. Re: Problem with JNDI
cinto_qq Jul 2, 2010 3:01 AM (in response to clebert.suconic)Hi Clebert,
Thanks, I have that in my xml file. However i still get the "Failure to connect to server" error.
Do I need to make other changes to the server?
Cinto
-
5. Re: Problem with JNDI
hughbragg Aug 23, 2010 1:25 AM (in response to cinto_qq)If you're connecting remotely, change the JNDI setting Clebert showed you and then change the run.sh file to include new -Djnp.host=localhost -Dhornetq.remoting.netty.host=localhost startup properties.
There's an example provided for the clustering setup in the run.sh file