Hi,

To register the mBean you need to add the following lines to the 
default\conf\jBoss-service.xml

This makes the jBoss while loading to recognize the mBean

Following is a sample how to use it

<mbean code="your mbean"
  |            name="your mBean name which you have given in the mbean java 
file">
  |    </mbean>

for example

<mbean code="com.jnu.temp.server.ServerExample"
  |            name="temp.server:alias=temp/server/ServerExample">
  |    </mbean>

the name in the above code sample is the ObjectName you specify in your mBean
Before that you make sure that your mbean follows the architecture or Jboss 
throws exception and will not start

Hope this helps

Thanks
Venkat

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894469#3894469

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894469


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to