Hello there! I'm registering an mbean using the server.registerMBean(objectname,object); method. I have a sar file that contains a custom deployer. This deployer reads a custom xml and register mbeans according to it.
Although I can see the managed bean on my jmx-console. after being registred it's lifecycle methods (start, create) are not being called, unless I explicit call them. Is this the expected behaviour? Or jboss calls it when it register my mbean and I'm missing something.
Regards
Sorry, found the answer at the great wiki, just took a lit bit (sorry for being lazy :) )
http://wiki.jboss.org/wiki/Wiki.jsp?page=ProgrammaticServices