How true,

I was creating a JDBC JNDI for an example, and didn't have it configured
properly.  That misled me.

Thanks!

I now have in my META-INF/context.xml file:

<Resource 
        name="OpenJPAEMF" 
        auth="Container" 
        factory="org.apache.openjpa.persistence.OpenJPAEntityManagerFactory"
        type="org.apache.openjpa.persistence.OpenJPAEntityManager"
/>

Now, this code:
        Context initCtx = new InitialContext();
        emf = (OpenJPAEntityManagerFactory)
initCtx.lookup("java:comp/env/OpenJPAEMF");
Causes:
        javax.naming.NameNotFoundException: Name OpenJPAEMF is not bound in this
Context

What am I doing wrong now?  


-- 
View this message in context: 
http://www.nabble.com/Configuring-OpenJPA%2C-need-help-tp18341039p18343113.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to