openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTCINW)" <dk0...@att.com>
Subject RE: Override "jta-data-source" with system properties?
Date Thu, 17 Dec 2009 18:54:31 GMT
> -----Original Message-----
> From: Michael Dick [mailto:michael.d.dick@gmail.com]
> Sent: Tuesday, December 15, 2009 8:23 PM
> To: users@openjpa.apache.org
> 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)
> <dk068x@att.com>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?
> >

Mime
View raw message