Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 65782 invoked from network); 1 Jun 2006 14:54:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2006 14:54:02 -0000 Received: (qmail 56966 invoked by uid 500); 1 Jun 2006 14:53:59 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 56937 invoked by uid 500); 1 Jun 2006 14:53:59 -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 56918 invoked by uid 99); 1 Jun 2006 14:53:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 07:53:59 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,PLING_QUERY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [61.95.162.82] (HELO Kecgate06.infosys.com) (61.95.162.82) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 07:53:56 -0700 Received: from indhubbhs04.ad.infosys.com ([192.168.200.84]) by Kecgate06.infosys.com with InterScan Messaging Security Suite; Thu, 01 Jun 2006 20:20:04 +0530 Received: from BLRKECMSG14.ad.infosys.com ([172.22.147.6]) by indhubbhs04.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 1 Jun 2006 20:21:00 +0530 Received: from BLRKECMSG01.ad.infosys.com ([172.25.213.131]) by BLRKECMSG14.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 1 Jun 2006 20:21:00 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Transaction timeout exception ?! Date: Thu, 1 Jun 2006 20:21:00 +0530 Message-ID: <4690875E336998438DF43A78B8E38CF2E4F5F2@BLRKECMSG01.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Transaction timeout exception ?! Thread-Index: AcaFiC8bmnOzA0m4Qx60Rr1dc3X+FQAAoOUw From: "Santosh Koti" To: X-OriginalArrivalTime: 01 Jun 2006 14:51:00.0956 (UTC) FILETIME=[CC8001C0:01C6858A] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N In that case do we not get a sql exception saying : the no of process = exceeded more than the ?? Thanks, Santosh. "Don't talk about yourself; it will be done when you leave. " =20 -----Original Message----- From: Mario R=FCbsam [mailto:mr@coderesearch.com]=20 Sent: Thursday, June 01, 2006 8:03 PM To: user@geronimo.apache.org Subject: Re: Transaction timeout exception ?! Santosh, first of all my question is now: which database? I had this under load conditions when not enough database connections/sessions available on the db server. Or when the max connections on Geronimo set higher than max connections on the server. -Mario Santosh Koti wrote: > =20 >=20 > =20 >=20 > Hi all, >=20 > =20 >=20 > I am getting transaction timeout exception , may I know the=20 > reasons/workaround for it? >=20 > =20 >=20 > I guess this the container is try ing to commit, but is waiting for = the=20 > DB to accept the request ? >=20 > =20 >=20 > Here is the following code snippet from Geronimo=20 > TransactionImpl.java(commit ()) : >=20 > =20 >=20 > -------------Begin----------------- >=20 > | //Transaction method, does = 2pc| > |221 ||*public*|| *void* commit() *throws* HeuristicMixedException=20 > , HeuristicRollbackException=20 > , RollbackException=20 > , SecurityException=20 > , SystemException=20 > {| > |222 beforePrepare();| > |223 | > |224 *try* {| > |225 *boolean* timedout =3D *false*;| > |226 *if* (TransactionTimer.getCurrentTime() >=20 > timeout)| > |227 {| > |228 status =3D = Status.STATUS_MARKED_ROLLBACK;| > |229 timedout =3D *true*;| > |230 }| > |231 | > |232 *if* (status =3D=3D Status.STATUS_MARKED_ROLLBACK) {| > |233 rollbackResources(resourceManagers);| > |234 *if*(timedout)| > |235 {| > |236 *throw* *new* RollbackException = > ("Transaction timout");| > |237 }| > |238 *else*| > |239 {| > |240 *throw* *new* RollbackException = > ("Unable to commit");| > |241 }| > |242 }| > |243 *synchronized* (*this*) {| > |244 *if* (status =3D=3D Status.STATUS_ACTIVE) {| > |245 *if* (*this*.resourceManagers.size() =3D=3D = 0) {| > |246 // nothing to commit| > |247 status =3D Status.STATUS_COMMITTED;| > |248 } *else* *if* (*this*.resourceManagers.size() = > =3D=3D 1) {| > |249 // one-phase commit decision| > |250 status =3D Status.STATUS_COMMITTING;| > |251 } *else* {| > |252 // start prepare part of two-phase| >=20 > =20 >=20 > =20 >=20 > -------------End-------------------- >=20 > Thanks, >=20 > Santosh. >=20 > "Don't talk about yourself; it will be done when you leave. " >=20 > =20 >=20 > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended=20 > solely for the use of the addressee(s). If you are not the intended=20 > recipient, please notify the sender by e-mail and delete the original=20 > message. Further, you are not to copy, disclose, or distribute this=20 > e-mail or its contents to any other person and any such actions are=20 > unlawful. This e-mail may contain viruses. Infosys has taken every=20 > reasonable precaution to minimize this risk, but is not liable for any = > damage you may sustain as a result of any virus in this e-mail. You=20 > should carry out your own virus checks before opening the e-mail or=20 > attachment. Infosys reserves the right to monitor and review the = content=20 > of all messages sent to or from this e-mail address. Messages sent to = or=20 > from this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** >=20