| How to create multiple instances of an Mbean? |
| Written by Mark S. | |||||
|
Jboss recipe of the day Here's an example: <?xml version="1.0" encoding="UTF-8"?> <server> <mbean code="sample.HelloWorldService" name="sample:service=HelloWorld,id=1"> <attribute name="Message">Hello World Service Client</attribute> </mbean> <mbean code="sample.HelloWorldService" name="sample:service=HelloWorld,id=2"> <attribute name="Message">Hello World Service Server</attribute> </mbean> </server>Now you'll see in the JMX console that two instances of the same Service (but with different id) are published.
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


