Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 5344 invoked from network); 20 Jun 2007 16:14:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jun 2007 16:14:22 -0000 Received: (qmail 51423 invoked by uid 500); 20 Jun 2007 16:14:22 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 51393 invoked by uid 500); 20 Jun 2007 16:14:22 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 51382 invoked by uid 99); 20 Jun 2007 16:14:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 09:14:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [66.45.238.226] (HELO server1.splicexeon1.com) (66.45.238.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jun 2007 09:14:17 -0700 Received: from [63.170.55.63] (port=25349 helo=[172.16.46.20]) by server1.splicexeon1.com with esmtpa (Exim 4.63) (envelope-from ) id 1I12ob-00086B-TC for user@geronimo.apache.org; Wed, 20 Jun 2007 12:13:54 -0400 Message-ID: <467952D9.1080801@joyfulnoisewebdesign.com> Date: Wed, 20 Jun 2007 11:16:25 -0500 From: "Jay D. McHugh" User-Agent: Thunderbird 1.5 (X11/20060204) MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: ejb 3.0--connecting to a DB References: <46783B5F.8080903@uky.edu> <4678903F.8010101@uky.edu> <4679411A.6000907@uky.edu> In-Reply-To: <4679411A.6000907@uky.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server1.splicexeon1.com X-AntiAbuse: Original Domain - geronimo.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - joyfulnoisewebdesign.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org 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 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 it, the > data in the DB is erased. > 2) In order to have some data in the DB I have added things to it > dynamically. So when I fetch the data from the DB after this addition, > the resultList is non-empty. However, when I try to view what I have > just added by casting one element of the resultant list (that is of > type Collection) to an ExchangeRate object with this line: > > ExchangeRate rate = (ExchangeRate)ratesList.get(i); > > I get a ClassCastException. Initially I thought ratesList might be > null, but I have ensured that it is not. > > For problem 1) I have read somewhere that there is a property I can > set so that it does not overwrite the existing data in the DB, but I > cannot remember what that is. > > As for problem 2) I am out of ideas. > > Thanks in advance, > Viet Nguyen > > > . >