[jboss-user] [Microcontainer] - Re: Emulating ServiceMBeanSupport

genman do-not-reply at jboss.com
Mon Jul 23 15:26:30 EDT 2007


anonymous wrote : You can always check the current execution stack. :-)
  | 

This feels like a hack, hence the smiley ...

I might be better off creating a central service controller that users would use to stop/start services by name. Exposing stop/start as MBean operations seems logical, but if there isn't a clean way to detect who's calling stop(), I probably should avoid this approach.

Could you point me to some examples on how to construct a method interceptor in the -beans.xml format, for beans marked with annotations? In case I change my mind again.


  | <inject fromContext="getState" />
  | 

Also: Is there a way to inject "beaninfo" using annotations? I'd rather not have to copy the same injection XML for every declaration. :-)



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

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



More information about the jboss-user mailing list