> -----Original Message----- > From: Michael Dick [mailto:[email protected]] > Sent: Tuesday, December 15, 2009 8:23 PM > To: [email protected] > Subject: Re: Override "jta-data-source" with system properties? > > Hi David, > > Should work fine (haven't tried recently though). The properties you > want > are openjpa.ConnectionFactoryName for jta-data-source, and > openjpa.ConnectionFactory2Name for non-jta-data-source.
Thanks, that worked. I set the "2Name" property to the empty string, and as a result I was able to use the same persistence.xml that my app uses. > On Tue, Dec 15, 2009 at 6:27 PM, KARR, DAVID (ATTCINW) > <[email protected]>wrote: > > > My main "persistence.xml" file specifies a "jta-data-source" element, > as > > that's what the real app is going to use. I'm going to attempt to > build > > Derby-based test cases for this whichi use the existing > persistence.xml, > > but overrides the database settings. If I have the "jta-data-source" > > element set in the persistence.xml, but I set the "openjpa.*" system > > properties to point to my in-memory Derby database, will the > > "jta-data-source" setting create any problem for me? > >
