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
>