Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 6568 invoked from network); 5 May 2010 12:17:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 May 2010 12:17:52 -0000 Received: (qmail 96451 invoked by uid 500); 5 May 2010 12:17:51 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 96392 invoked by uid 500); 5 May 2010 12:17:51 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 96385 invoked by uid 99); 5 May 2010 12:17:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 12:17:50 +0000 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ashjain2@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pw0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 May 2010 12:17:46 +0000 Received: by pwi9 with SMTP id 9so2602760pwi.13 for ; Wed, 05 May 2010 05:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=pA2/u+Pl+7DPph9V06JtBVL2wKJ7eO8P/uOlPplodFI=; b=N8AKWrEaw31/Q80lIPdgPLeu2sVnW4OlHNgR66sbfztfD5LRsbPXgao3KziYqdsAl8 nXydOS+xNPms4U/yLpImIzplcSC9TKTZ2FfQgnBWunPpeWJigNgi38a5nfaiSArEQYmY bWoC1CzHRRRbIDkM0Vr5cShKkaNInQ2N/YFws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=VYMK4hgVEN5Q1ySlWWx7j7pZPbY00QCLdlCX7X9dt5hk1kBL94QLT686/AN8yJswK/ oFW+lZydjEE/c0QE+Kv3R317tgFiyF9XOojXUl9dEeSM0LW4/INiKa4BOk8nyAvl9D7P SdX/hmCshaQJ9V74ijDbwZMgW0klnaavDbT4Q= MIME-Version: 1.0 Received: by 10.114.188.16 with SMTP id l16mr1339302waf.87.1273061845672; Wed, 05 May 2010 05:17:25 -0700 (PDT) Received: by 10.115.18.3 with HTTP; Wed, 5 May 2010 05:17:25 -0700 (PDT) In-Reply-To: <1273007303094-777380.post@n3.nabble.com> References: <1273007303094-777380.post@n3.nabble.com> Date: Wed, 5 May 2010 17:47:25 +0530 Message-ID: Subject: Re: Question on DB Pool Creation using Tranql XA Resource Adapter From: Ashish Jain To: user@geronimo.apache.org Content-Type: multipart/alternative; boundary=0016e64ca6c016a6820485d7cfe1 --0016e64ca6c016a6820485d7cfe1 Content-Type: text/plain; charset=ISO-8859-1 try specifying tnsentryname and servername in the plan. On Wed, May 5, 2010 at 2:38 AM, Anshuk wrote: > > Hello All, > > I am trying to create a db connection pool in geronimo 2.1.4 for oracle > database using. Tranql XA Resource Adapter. > > The plan which is created looks like this: > > > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"> > > console.dbpool > test_webdb_pool > 1.0 > rar > > > > ojdbc > ojdbc > 14 > jar > > > > > > > > > javax.sql.DataSource > > test_webdb_pool > > name="PortNumber">1521 > > > > name="DriverType">thin > name="Password">anshuk > > > > name="DatabaseName">TESTING > > name="UserName">anshuk > > > > > > 10 > 0 > > > > > > > > > > I am using oracle thin driver. > It is cretaed and deployed, but it is not connecting to the database. When > from the geronimo console, I am running a sql to test the database > connection, it is failing. > the database related parameters is 100% correct, as I am using the same > details for generic tranql resource adapter, and it gets conncected. > > The error I am getting: > > Io exception: SO Exception was generated * > > > Anybody faced similar issue? or any workarounds? > > Anshuk > > > -- > View this message in context: > http://apache-geronimo.328035.n3.nabble.com/Question-on-DB-Pool-Creation-using-Tranql-XA-Resource-Adapter-tp777380p777380.html > Sent from the Users mailing list archive at Nabble.com. > --0016e64ca6c016a6820485d7cfe1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable try specifying tnsentryname and servername in the plan.

On Wed, May 5, 2010 at 2:38 AM, Anshuk &= lt;Anshuk_Chaudhuri@infosys= .com> wrote:

Hello All,

I am trying to create a db connection pool in geronimo 2.1.4 for oracle
database using. Tranql XA Resource Adapter.

The plan which is created looks like this:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<connector xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/= connector-1.2">
=A0 =A0<dep:environment
xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.2&= quot;>
=A0 =A0 =A0 =A0<dep:moduleId>
=A0 =A0 =A0 =A0 =A0 =A0<dep:groupId>console.dbpool</dep:groupId&g= t;
=A0 =A0 =A0 =A0 =A0 =A0<dep:artifactId>test_webdb_pool</dep:artif= actId>
=A0 =A0 =A0 =A0 =A0 =A0<dep:version>1.0</dep:version>
=A0 =A0 =A0 =A0 =A0 =A0<dep:type>rar</dep:type>
=A0 =A0 =A0 =A0</dep:moduleId>
=A0 =A0 =A0 =A0<dep:dependencies>
=A0 =A0 =A0 =A0 =A0 =A0<dep:dependency>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:groupId>ojdbc</dep:groupId>= ;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:artifactId>ojdbc</dep:artifac= tId>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:version>14</dep:version> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<dep:type>jar</dep:type>
=A0 =A0 =A0 =A0 =A0 =A0</dep:dependency>
=A0 =A0 =A0 =A0</dep:dependencies>
=A0 =A0</dep:environment>
=A0 =A0<resourceadapter>
=A0 =A0 =A0 =A0<outbound-resourceadapter>
=A0 =A0 =A0 =A0 =A0 =A0<connection-definition>

<connectionfactory-interface>javax.sql.DataSource</connectionfacto= ry-interface>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<connectiondefinition-instance>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<name>test_webdb_pool</nam= e>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "NetworkProtocol"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting
name=3D"PortNumber">1521</config-property-setting>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "TNSEntryName"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "MaxStatements"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "DataSourceName"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting
name=3D"DriverType">thin</config-property-setting>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting
name=3D"Password">anshuk</config-property-setting>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "ServerName"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "Description"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "LoginTimeout"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting
name=3D"DatabaseName">TESTING</config-property-setting><= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting name=3D= "ServiceName"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<config-property-setting
name=3D"UserName">anshuk</config-property-setting>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<connectionmanager>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<xa-transaction>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<transaction-cac= hing/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</xa-transaction>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<single-pool>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<max-size>10&= lt;/max-size>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<min-size>0&l= t;/min-size>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<match-one/><= br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</single-pool>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</connectionmanager>
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</connectiondefinition-instance>
=A0 =A0 =A0 =A0 =A0 =A0</connection-definition>
=A0 =A0 =A0 =A0</outbound-resourceadapter>
=A0 =A0</resourceadapter>
</connector>

I am using oracle thin driver.
It is cretaed and deployed, but it is not connecting to the database. When<= br> from the geronimo console, I am running a sql to test the database
connection, it is failing.
the database related parameters is 100% correct, as I am using the same
details for generic tranql resource adapter, and it gets conncected.

The error I am getting:

Io exception: SO Exception was generated *


Anybody faced similar issue? or any workarounds?

Anshuk


--
View this message in context: http://apache-geronimo.328035.n3.nabbl= e.com/Question-on-DB-Pool-Creation-using-Tranql-XA-Resource-Adapter-tp77738= 0p777380.html
Sent from the Users mailing list archive at Nabble.com.

--0016e64ca6c016a6820485d7cfe1--