Re: ejb 3.0--connecting to a DB

2007-06-19 Thread David Jencks
On Jun 19, 2007, at 10:26 PM, Viet Hung Nguyen wrote: Thanks David, I resolved the PersistenceUnit problem from the hints that you gave me. Excellent! However, once all of that was resolved I am having problems connecting to the DB It looks like you generated the db pool plan from

Re: ejb 3.0--connecting to a DB

2007-06-19 Thread Viet Hung Nguyen
Thanks David, I resolved the PersistenceUnit problem from the hints that you gave me. However, once all of that was resolved I am having problems connecting to the DB I have the following: --BankPool.xml-- http://geronimo.apache.org/xml/ns/j2ee/connector-1.1";> xmlns:dep="http://geron

Re: ejb 3.0--connecting to a DB

2007-06-19 Thread David Jencks
I'm a bit confused. -- the persistence-unit-ref is in a web.xml whereas the annotation appears to be in an ejb -- Since you are supplying datasources, leave out the connection info from the properties -- your web-app is version 2.4 whereas jpa stuff is only supported in 2.5 (although I thi

ejb 3.0--connecting to a DB

2007-06-19 Thread Viet Hung Nguyen
I am unable to get a handle on a EntityManagerFactory. I have the following configuration using Derby as the DB on Geronimo 2.0: --*persistence.xml *which is in the JAR file under META-INF-- http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst