to be more specific: this is about how to implement the section 3.10. Support for Common Annotations
of the spec. My fear is that the EJB container and OpenWebBeans interfere with each other in this domain. There is currently only the handling of @PostConstruct and @PreDestroy implemented for beans under our control. LieGrue, strub --- Mark Struberg <[email protected]> schrieb am Mo, 26.1.2009: > Von: Mark Struberg <[email protected]> > Betreff: Basic understanding of JPA EntityManager injection > An: [email protected] > Datum: Montag, 26. Januar 2009, 12:56 > Hi! > > A little question about integrating handlers for a few very > specific situations: > > If we provide support for JPA, then the following > annotations are often being used: > > javax.persistence.PersistenceContext > javax.persistence.PersistenceContexts > javax.persistence.PersistenceUnit > javax.persistence.PersistenceUnits > > They are really very handy, even if NO EJB container is > involved. > > So my question is: do we like to support this functionality > in a standalone manner? > > In other words: > if (!EJBContainer available) { > inject PersistenceContext and PersistenceUnit > } > > This is the way Spring works, and I personally find this > quite handy. > > We could easily implement this in an own optional module. > > WDYT? > > LieGrue, > strub
