users@glassfish.java.net

Re: GF3 + OpenJPA 2.0 - Enhancer not working

From: Mitesh Meswani <mitesh.meswani_at_oracle.com>
Date: Tue, 20 Jul 2010 08:11:30 -0700

  Where is following code written?

@PersistenceUnit(unitName="myApplicationPersistenceUnit")
private EntityManagerFactory emfTmp;


On 7/20/2010 6:29 AM, glassfish_at_javadesktop.org wrote:
> Hi Mitesh,
>
> this is a javax.persistence.EntityManager ... so it should be injectable.
>
> When using the Injection only, I get a NullPointer, because the dependency does not get injected (and the variable stays null).
>
> Stefan
> [Message sent by forum member 'kniffte']
>
> http://forums.java.net/jive/thread.jspa?messageID=478083
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>