RE: Configuring OpenJPA, need help

2008-07-08 Thread ericp56
It looks like java:comp/env/OpenJPAEMF should have worked, although the extra slash didn't work either. >From reading some articles, it looks like the following should work: I'm no longer using the initial context, or web.xml. context.xml: my class using JPA: @PersistenceUnit(

RE: Configuring OpenJPA, need help

2008-07-08 Thread Caldarale, Charles R
> From: ericp56 [mailto:[EMAIL PROTECTED] > Subject: RE: Configuring OpenJPA, need help > > initCtx.lookup("java:comp/env/OpenJPAEMF"); Try "java:/comp/env/OpenJPAEMF". Note the additional slash. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTH

RE: Configuring OpenJPA, need help

2008-07-08 Thread ericp56
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: Now, this code: Context initCtx = new InitialContext(); emf = (OpenJPAEntityManagerFactory) initCtx.lookup("java:c

RE: Configuring OpenJPA, need help

2008-07-08 Thread Caldarale, Charles R
> From: ericp56 [mailto:[EMAIL PROTECTED] > Subject: Configuring OpenJPA, need help > > I am not deploying a WAR, but individual files, so I can't use > META-INF/context.xml (I'm led to believe). Not true. Simply create the META-INF directory under your webapp deployment directory and place the