Marcel,
Thanks! I will play with it! It looks like it will work. We do not yet run
under Java 5, so I guess I will need to move there to support the JMX
stuff...
Hmm, operations like
j org.xmlBlaster:nodeClass=node,node="frodo"/action=usage
On the other hand the command you need works with a message oid
"__cmd:client/sam/session/1/?connectionState "
over your SSL, so for your case you have the solution already with JDK 1.4 (http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.messages.html)
Matt
----- Original Message ----- From: "Marcel Ruff" <mr at marcelruff.info>
To: <xmlblaster-devel at server.xmlBlaster.org>
Sent: Sunday, March 12, 2006 8:42 PM
Subject: Re: [xmlblaster-devel] Get connection states of connected nodes...
org.xmlBlaster:nodeClass=node,node="frodo",clientClass=client,client="sam",sSalute,
in the current SVN there it is now possible to invoke JMX commands from the server command line:
java -Dcom.sun.management.jmxremote org.xmlBlaster.Main .. j <JMX call> For example 'j org.xmlBlaster:nodeClass=node,node="heron"/action=getFreeMemStr'
if you wish you can play interactively with this feature. If the JMX possibilities are enough for you, we could add this to be available with command messages (over your SSL connection) as well.
Your query is something like:
j
essionClass=session,session="1"/action=getConnectionState
and returned is "ALIVE" or "POLLING" depending on sam's availability,