On Jul 25, 2006, at 5:24 PM, David Blevins wrote:
On Jul 24, 2006, at 1:35 PM, David Blevins wrote:
Going to take a whack at support for EJB 3 POJO Style beans.
Thinking to start here http://jira.codehaus.org/browse/OPENEJB-76
Got some trivial support in the stateless container. It longer
assumes that all bean instances are subclasses of SessionBean.
Considered dynamically subclassing each bean class to adapt it to
be a SessionBean class, but that would add significant overhead to
startup. The other downer would be you'd never get to see your
bean classname in the stacktrace, only the generated class name.
Got something in for the stateful container now too. What we have
now is the ability to support a pojo lifecycle on a stateless or
stateful session bean. The bean class doesn't have to import any
javax.ejb classes, interfaces or annotations at all.
The bean must be configured via the ejb-jar.xml. We still don't have
support for the related annotations @PostConstruct, @PreDestroy,
@PrePassivate, and @PostActivate (OPENEJB-216). Nor full dependency
injection (OPENEJB-98), nor for business local or business remote
interfaces quite yet (OPENEJB-90).
Getting the business interfaces to work will be the next thing.
-David