[jboss-dev-forums] [Design of EJB 3.0] - Re: Feature: MC Equivalent of @Service

ALRubinger do-not-reply at jboss.com
Wed May 28 14:16:57 EDT 2008


Thanks for pointing out EJBTHREE-655.

"wolfc" wrote : What is easily possible is a MC view on an EJB. This should not require any new container and should be applicable to both SLSB and Service/Singleton.

This was actually my last thought before bed last night. :)  

"wolfc" wrote : As for the actual life cycle callbacks, these are @PostConstruct and @PreDestroy.
  | Although create, start, stop and destroy will probably also be called by MC (in about the same way we now call the @Management interface).

@PostConstruct and @PreDestroy are different; that's per bean instance.  I'm looking to get Annotations for "create/start/stop/destroy" at the Container level, much like MC has for POJOs.  We already have these within the container itself; I want to also provide a hook for a bean provider to specify methods as callbacks to be invoked along the Container lifecycle, not the instance lifecycle.

S,
ALR

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

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



More information about the jboss-dev-forums mailing list