You can take a pojo and expose it as a service using an XMBean, but it has no ability 
to know what MBeanServer it is registered with, or access to its management metadata. 
This change allows for an IOC type of setting of the container context such as the 
MBeanServer by providing a setMBeanServer method:


  | public class PackageVersionService
  | {
  |    private MBeanServer server;
  | 
  |    public void setMBeanServer(MBeanServer server)
  |    {
  |       this.server = server;
  |    }
  | ...
  | 



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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to