Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 91045 invoked from network); 13 Jan 2010 18:15:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 18:15:28 -0000 Received: (qmail 42256 invoked by uid 500); 13 Jan 2010 18:15:28 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 42182 invoked by uid 500); 13 Jan 2010 18:15:28 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 42096 invoked by uid 99); 13 Jan 2010 18:15:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 18:15:28 +0000 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 18:15:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NV7k9-00019p-1k for dev@geronimo.apache.org; Wed, 13 Jan 2010 10:14:57 -0800 Message-ID: <27148795.post@talk.nabble.com> Date: Wed, 13 Jan 2010 10:14:57 -0800 (PST) From: Shanmu To: dev@geronimo.apache.org Subject: Informix XA data source configuration for IFX_LOCK_MODE_WAIT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_35516_32152019.1263406497048" X-Nabble-From: shanmu_tp@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_35516_32152019.1263406497048 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello everyone, We are using Geronimo 2.1.4 with informix XA driver version 3.0.0 JC3. The application we build has a process which runs in the geronimo containner every 2 minutes and updates lots of tables. in foreground we a web application where users can access screen and update and retrieve from the same tables. Our architecture is like this JSP/Struts 2 --> EJB 3.0 with CMT--> DAO using hibernate uses data source configured in geronimo server--> informix DB We have configured the data source using the informix provided drivers and the informix Tran QL connectors. We are currently facing a problem where we are getting locking issues frequently when the user and batch process collides. The error is "Could not do a physical-order read to fetch next row.SQL Error: -107, SQLState: IX000" The solution provided was to increase the IFX_LOCK_MODE_WAIT to some reasonable time so that the process waits for the predefined time before it throws the error. Default value for this is configured as zero in IFXDatasource. By default data source configured using the informix XA option does not have any option to configure this parameter. Neither the hibernate has any configuration for this, as it is using the data source created in application server. On analyzing the source code we noticed that there is a component org.tranql.connector.informix.XAMCF part of tran QL adapter which creates and configures the data source, public XAMCF() { super(new IfxXADataSource(), new NoExceptionsAreFatalSorter()); password = ""; ds = (IfxXADataSource)xaDataSource; } This IFXData source doesn not have the option of lock mode wait setup, which can be done using the method "setIfxIFX_LOCK_MODE_WAIT". My questions are: 1. Is there any option where in we can configure the IFX_LOCK_MODE_WAIT parameter? 2. If not is there any patch with this enhancement done. Thanks in advance Best Regards Shanmu -- View this message in context: http://old.nabble.com/Informix-XA-data-source-configuration-for-IFX_LOCK_MODE_WAIT-tp27148795s134p27148795.html Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com. ------=_Part_35516_32152019.1263406497048 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello everyone, We are using Geronimo 2.1.4 with informix XA driver version 3.0.0 JC3. The application we build has a process which runs in the geronimo containner every 2 minutes and updates lots of tables. in foreground we a web application where users can access screen and update and retrieve from the same tables. Our architecture is like this JSP/Struts 2 --> EJB 3.0 with CMT--> DAO using hibernate uses data source configured in geronimo server--> informix DB We have configured the data source using the informix provided drivers and the informix Tran QL connectors. We are currently facing a problem where we are getting locking issues frequently when the user and batch process collides. The error is "Could not do a physical-order read to fetch next row.SQL Error: -107, SQLState: IX000" The solution provided was to increase the IFX_LOCK_MODE_WAIT to some reasonable time so that the process waits for the predefined time before it throws the error. Default value for this is configured as zero in IFXDatasource. By default data source configured using the informix XA option does not have any option to configure this parameter. Neither the hibernate has any configuration for this, as it is using the data source created in application server. On analyzing the source code we noticed that there is a component org.tranql.connector.informix.XAMCF part of tran QL adapter which creates and configures the data source, public XAMCF() { super(new IfxXADataSource(), new NoExceptionsAreFatalSorter()); password = ""; ds = (IfxXADataSource)xaDataSource; } This IFXData source doesn not have the option of lock mode wait setup, which can be done using the method "setIfxIFX_LOCK_MODE_WAIT". My questions are: 1. Is there any option where in we can configure the IFX_LOCK_MODE_WAIT parameter? 2. If not is there any patch with this enhancement done. Thanks in advance Best Regards Shanmu

View this message in context: Informix XA data source configuration for IFX_LOCK_MODE_WAIT
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
------=_Part_35516_32152019.1263406497048--