openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Injecting Entity Manager to POJO/Form Bean
Date Fri, 01 Jun 2007 12:42:07 GMT
Hi Joshua,

The only POJOs that you can inject are server components, e.g.  
ManagedBean or SessionBean. You can find the complete list in the EJB  
3 specification.

Regular POJOs cannot be injected.


On Jun 1, 2007, at 2:22 AM, Joshua Jackson wrote:

> Dear all,
> How do I get the EntityManager injected to my web Form Bean / POJO?
> Currently I'm deploying my apps that uses openjpa as the persistence
> implementation on an appserver, but I still can not get the
> EntityManager injected in my POJO. Where can I find the reference
> regarding this?
> Thanks in advance
> -- 
> YM!: thejavafreak
> Blog:

Craig Russell
Architect, Sun Java Enterprise System
408 276-5638
P.S. A good JDO? O, Gasp!

View raw message