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

wolfc do-not-reply at jboss.com
Wed May 28 09:12:24 EDT 2008


You need to differentiate between EJB 3 and POJO Server.

POJO Server provides Tx, Security for any MC Bean. The only difference is the detached instances.

It's a misconception that a service bean requires a management interface. It's also a misconception that that management interface actually manages the container life cycle. It's a very basic chicken/egg problem. If I stop either chicken or egg, there will be no more eggs to start. (See also http://jira.jboss.org/jira/browse/EJBTHREE-655)

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.

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).

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

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



More information about the jboss-dev-forums mailing list