openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu wang <wangy...@gmail.com>
Subject Re: Use WLS connection pool
Date Tue, 04 Sep 2012 08:39:59 GMT
Ok, It does work now, I just deploy the data source to a server first!
That is cool !

Regards,
Yu Wang

On Tue, Sep 4, 2012 at 4:30 PM, yu wang <wangyumi@gmail.com> wrote:
> Experts:
> I defined a non xa datasource in WLS which JNDI name is ds_test
> Here is a snippet I am using.
>         <persistence-unit name="tsam" transaction-type="RESOURCE_LOCAL">
>                 <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
>                 <non-jta-data-source>ds_test</non-jta-data-source>
>
> I do not define <property name="openjpa.ConnectionDriverName"> and
> conn URL in persistence.xml since I think my app should find these
> information from JNDI name.
>
> Whne I boot my app, I got error message like below:
> A JDBC Driver or DataSource class name must be specified in the
> ConnectionDriverName property.
>
> Regards,
> Yu Wang
>
>
> On Tue, Sep 4, 2012 at 3:13 PM, yu wang <wangyumi@gmail.com> wrote:
>> kevin,
>> Do you have any configuration sample for sharing? For example, a
>> persistence.xml snippet?
>>
>> Regards,
>> Yu Wang
>>
>> On Thu, Feb 2, 2012 at 10:43 PM, Kevin Sutter <kwsutter@gmail.com> wrote:
>>> Yes, that should be possible.  I'm not an expert with WebLogic, but I know
>>> this can be done (and is encouraged) with WebSphere application servers.
>>> Specifically, you would define your datasources in your persistence.xml
>>> using the <jta-data-source> and/or <non-jta-data-source> elements.
 These
>>> would contain a jndi reference to the datasource as defined in your
>>> WebLogic environment.  This way, you can take advantage of the datasource
>>> configuration, management, and connection pooling as defined by WebLogic.
>>> This is definitely the recommended approach when running in an application
>>> server.
>>>
>>> Good luck,
>>> Kevin
>>>
>>> On Wed, Feb 1, 2012 at 2:05 AM, yu wang <wangyumi@gmail.com> wrote:
>>>
>>>> Hello Gurus,
>>>> I'm curious about that with OpenJPA, can we use a data source
>>>> configured in Weblogic server "JDBC Data Sources"?
>>>>
>>>> Regards,
>>>> Yu Wang
>>>>

Mime
View raw message