I progress!
I have added the -D options and I can run the JConsole.
So now how can I declare my Mbean to be loaded when Synapse starts?

Thank you,

Laurent.
-----Message d'origine-----
De : Asankha C. Perera [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 14 mars 2008 11:43
À : [email protected]
Objet : Re: JMX monitoring support


Laurent
> I can't find any informations about JMX in Synapse 1.1.1 site. Can 
> someone help me? I'd like to declare a Mbean and make it avalaible 
> after Synapse starts.
>   
Sure, we need to improve JMX support and documentation before the next 
release.. if you want to look at the initial JMX support we have with 
Synapse, add  "-Dcom.sun.management.jmxremote" to your synapse.xml's 
last line. e.g:

$JAVA_HOME/bin/java -server -Xms128M -Xmx128M $XDEBUG $PORT $SYNAPSE_XML 
*-Dcom.sun.management.jmxremote* -Dresolve.root=$SYNAPSE_HOME/repository 
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.pars
ers.XMLGrammarCachingConfiguration 
-Dsynapse.home=$SYNAPSE_HOME 
-Daxis2.xml=$SYNAPSE_HOME/repository/conf/axis2.xml 
-Djava.endorsed.dirs=$SYNAPSE_ENDORSED 
-Djava.io.tmpdir=$SYNAPSE_HOME/work/temp/synapse -classpath 
$SYNAPSE_CLASSPATH org.apache.synapse.SynapseServer $SYNAPSE_HOME/repository

Or if you are using Synapse as a daemon, add it to the wrapper.conf as:
wrapper.java.additional.10=*-Dcom.sun.management.jmxremote

*Now if you run jconsole on the local machine, you can access the 
MBeans. The standard JMX documentation applies

asankha




Ce message est protégé par les règles relatives au secret des correspondances. 
Il est donc établi à destination exclusive de son destinataire. Celui-ci peut 
donc contenir des informations confidentielles. La divulgation de ces 
informations est à ce titre rigoureusement interdite. Si vous avez reçu ce 
message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail 
figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, 
this message is intended solely for the attention of the addressee. This 
message may contain privileged or confidential information, as such the 
disclosure of these informations is strictly forbidden. If, by mistake, you 
have received this message, please return this message to the addressser whose 
e-mail address is written above and destroy this message and all files attached.


Reply via email to