Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E18AC9D18 for ; Thu, 2 Feb 2012 14:44:41 +0000 (UTC) Received: (qmail 93772 invoked by uid 500); 2 Feb 2012 14:44:41 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 93650 invoked by uid 500); 2 Feb 2012 14:44:40 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 93636 invoked by uid 99); 2 Feb 2012 14:44:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 14:44:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-lpp01m010-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 14:44:34 +0000 Received: by lagu2 with SMTP id u2so1760686lag.33 for ; Thu, 02 Feb 2012 06:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=PJOdkUNplJ+LHS/JX/e/sgYoVzbGS7X3d7ADSPQG/Pg=; b=xyUvWZOmZMlhm2h49U+pBGcmILROUaQHjU8nPpxCj2kez0yBoMyT35M/aNNxLpQ0yh a9mVMZKhi/htgFQZjM62K0XdkG/iDA+5QoUpAORRmtJgeX+b426t3pLSowLh/0Ou/I/f yU1v8I3+OBFviTn4wXzjzIqwNj9AWKth24lOU= Received: by 10.152.136.20 with SMTP id pw20mr1617305lab.32.1328193852393; Thu, 02 Feb 2012 06:44:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.96.40 with HTTP; Thu, 2 Feb 2012 06:43:52 -0800 (PST) In-Reply-To: References: From: Kevin Sutter Date: Thu, 2 Feb 2012 08:43:52 -0600 Message-ID: Subject: Re: Use WLS connection pool To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=f46d042f9210c3c6ee04b7fc3a89 --f46d042f9210c3c6ee04b7fc3a89 Content-Type: text/plain; charset=ISO-8859-1 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 and/or 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 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 > --f46d042f9210c3c6ee04b7fc3a89--