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.

Craig

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: http://www.nagasakti.or.id/roller/joshua/

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to