Re: ejb 3.0--connecting to a DB

2007-06-20 Thread Viet Hung Nguyen
Viet Hung Nguyen wrote: I am deploying my db pool through the admin console. I am using the tranql-connector-1.3.rar found under geronimo-jetty6-jee5-2.0-SNAPSHOT\repository\org\tranql\tranql-connector-ra\1.3. I am still encountering these two problems: 1) The EJB seems to be talking to the

Re: ejb 3.0--connecting to a DB

2007-06-20 Thread Jay D. McHugh
Viet, I just looked again at your original email and persistence.xml - you are already setting openjpa.jdbc.SynchronizeMappings to false, so hopefully your whole problem is just related to transactions. Jay Viet Hung Nguyen wrote: I am deploying my db pool through the admin console. I am usi

Re: ejb 3.0--connecting to a DB

2007-06-20 Thread Jay D. McHugh
Viet, Try setting: I believe the default setting will rebuild your database and clear your tables. As far as your data persisting, you will need to make sure you start a transaction and commit it after changing data. Since you are using local transactions (in your persistence.xml), try:

Re: ejb 3.0--connecting to a DB

2007-06-20 Thread Viet Hung Nguyen
I am deploying my db pool through the admin console. I am using the tranql-connector-1.3.rar found under geronimo-jetty6-jee5-2.0-SNAPSHOT\repository\org\tranql\tranql-connector-ra\1.3. I am still encountering these two problems: 1) The EJB seems to be talking to the DB, but whenever I query i

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