Hi,
If OpenJPA has understood what you told in persistence.xml, then OpenJPA
should call
MyDataSource.getConnection()
when a connection is needed.
To quickly verify call:
OpenJPAEntityManager.getConnection();
Daryl Stultz wrote:
>
> On Thu, May 21, 2009 at 5:16 PM, Pinaki Poddar <[email protected]> wrote:
>
>>
>> Hi,
>> How did you tell OpenJPA to use "MyDataSource"?
>
>
> First I asked nicely, then I got ignorant with it, then I put this in
> persistence.xml:
>
> <property name="openjpa.ConnectionDriverName"
> value="yadda.yadda.MyDataSource" />
> <property name="openjpa.ConnectionProperties"
> value="DefaultDbRegistryName=default" />
>
> --
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:[email protected]
>
>
-----
Pinaki Poddar http://ppoddar.blogspot.com/
http://www.linkedin.com/in/pinakipoddar
OpenJPA PMC Member/Committer
JPA Expert Group Member
--
View this message in context:
http://n2.nabble.com/Webapp-restart-problem-tp2953817p2955018.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.