[jboss-user] [Microcontainer] - Re: migrating from ServiceMBeanSupport
do-not-reply at jboss.com
Wed Jan 2 09:44:22 EST 2008
> You are missing the point and some code/xml
Yes, thanks Ales, the missing link seems to be the functionality in TestServiceControllerLifecycleCallback. I had assumed that declaring the annotation was sufficient, but it seems that nothing in the current AS trunk actually does anything with that annotation, or at least not at a sufficiently early stage in the lifecycle to be useful.
The code in TestServiceControllerLifecycleCallback is generic, not specific to the TransactionManager service. IMO it should be present in the AS, but I don't see it. Do I need to include it in the TS side of the integration module? To my mind the functionality should really be provided via bootstrap-beans, so in the xml for the TransactionManager I can simply reference the ServiceLifecycle bean rather than having to declare it first. Or perhaps one of the existing beans already has this functionality?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116405#4116405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116405
More information about the jboss-user