-
1. Re: When is ServiceMBeanSupport.server property set?
dimitris Mar 2, 2005 4:31 PM (in response to ehogberg)Have you overriden by accident (or intensionally) preRegister()?
This is where this.server is set:... public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception { this.server = server; serviceName = getObjectName(server, name); return serviceName; } ...
-
2. Re: When is ServiceMBeanSupport.server property set?
ehogberg Mar 2, 2005 4:49 PM (in response to ehogberg)Dmitri:
No, I had not overridden any of the *register() methods. After I read your post, I tried an override of preRegister() that does nothing but call super.preRegister() and then output a log message. Interesting thing--preRegister() is not getting called. So that would certainly explain why this.server is always null...
I'm suspecting that I'm not configuring something properly. The mbean is deployed as a .sar containing a jboss-service.xml configurator. Shouldn't this automatically self-register and start upon deployment? If so, then I'm really confused about why preRegister() never gets called. If not, then I'm just confused about how services should be set up. Either way, your thoughts would be appreciated.
TIA,
-E- -
3. Re: When is ServiceMBeanSupport.server property set?
dimitris Mar 3, 2005 12:27 AM (in response to ehogberg)show your META-INF/jboss-service.xml