-
1. Re: Strange results with twiddle.sh when Jboss is down
dimitris Nov 24, 2006 8:38 AM (in response to bcosnefroy)I think it has to do with how the naming service is looked up. If it can't find it, it multicasts to the network to find the server. There is some option to turn this off, so you can search for it.
-
2. Re: Strange results with twiddle.sh when Jboss is down
bcosnefroy Nov 29, 2006 3:36 AM (in response to bcosnefroy)Hi,
Thanks Dimitris for your answer.
I've search for the option but I can't find it.
As you told me, in the org.jboss.console.twiddle.Twiddle.java, I can see:
Properties props = new Properties(System.getProperties());
props.put(Context.PROVIDER_URL, serverURL);
ctx = new InitialContext(props);
So It seems that I can set a system Property for the InitialContext.
I've searched for an option to disable multicast in javax.naming.InitialContext but I was not able to find it.
Does anyone know which property I have to set?
Thanks,
Bruno Cosnefroy -
3. Re: Strange results with twiddle.sh when Jboss is down
bcosnefroy Nov 29, 2006 8:26 AM (in response to bcosnefroy)Hi,
It seems that I have to use the jndi option:
jnp.disableDiscovery=true
to disable the multicast.
I wonder how to set this option without changing the Twiddle.java code.
Should I create a jndi.properties file in the twiddle.jar or should I add a parameter to my java command line in the twiddle.sh script?
Thanks in advance,
Bruno -
4. Re: Strange results with twiddle.sh when Jboss is down
bcosnefroy Nov 29, 2006 8:55 AM (in response to bcosnefroy)Hi,
Sorry to reply to my own topics...
I've found how to solve my problem.
There is a jndi.properties file in the twiddle.jar file.
In the jndi.properties file, I've added the line:
jnp.disableDiscovery=true
Now when my Jboss server is down, twiddle.sh returns an Exception.
I still have to modify the check_jbossjmx nagios script to deal with this exception.
Thanks Dimitris for your answer.
Bruno -
5. Re: Strange results with twiddle.sh when Jboss is down
delgurth Jul 3, 2009 4:21 AM (in response to bcosnefroy)"bcosnefroy" wrote:
Hi,
Sorry to reply to my own topics...
I've found how to solve my problem.
There is a jndi.properties file in the twiddle.jar file.
In the jndi.properties file, I've added the line:
jnp.disableDiscovery=true
Now when my Jboss server is down, twiddle.sh returns an Exception.
I still have to modify the check_jbossjmx nagios script to deal with this exception.
Thanks Dimitris for your answer.
Bruno
Thanks for pointing out what was the solution to this. You can also add the property on the commandline, if you don't want to modify the twiddle.jar
just add-Djnp.disableDiscovery
to your commandline, at least that worked for me.