geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@geronimo.apache.org
Subject [jira] Closed: (GERONIMO-161) LocalXAResourceInsertionInterceptor could use XAResource implementation
Date Sun, 01 Aug 2004 20:31:40 GMT
Message:

   The following issue has been closed.

   Resolver: David Jencks
       Date: Sun, 1 Aug 2004 1:30 PM

No reply to my arguments
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/GERONIMO-161

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: GERONIMO-161
    Summary: LocalXAResourceInsertionInterceptor could use XAResource implementation
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Apache Geronimo
 Components: 
             core

   Assignee: David Jencks
   Reporter: hamilton verissimo

    Created: Tue, 6 Apr 2004 8:37 AM
    Updated: Sun, 1 Aug 2004 1:30 PM

Description:
LocalXAResourceInsertionInterceptor could use XAResource from ManagedConnection instead of
always build a wrapper to a XAResource delegating to LocalTransaction.

Follows the patch.

Index: LocalXAResourceInsertionInterceptor.java
===================================================================
RCS file: /home/cvspublic/incubator-geronimo/modules/connector/src/java/org/apache/geronimo/connector/outbound/LocalXAResourceInsertionInterceptor.java,v
retrieving revision 1.3
diff -u -r1.3 LocalXAResourceInsertionInterceptor.java
--- LocalXAResourceInsertionInterceptor.java	10 Mar 2004 09:58:32 -0000	1.3
+++ LocalXAResourceInsertionInterceptor.java	6 Apr 2004 15:33:54 -0000
@@ -18,6 +18,7 @@
 package org.apache.geronimo.connector.outbound;
 
 import javax.resource.ResourceException;
+import javax.transaction.xa.XAResource;
 
 /**
  * LocalXAResourceInsertionInterceptor.java
@@ -37,7 +38,20 @@
 
     public void getConnection(ConnectionInfo connectionInfo) throws ResourceException {
         next.getConnection(connectionInfo);
+        
+        
         ManagedConnectionInfo mci = connectionInfo.getManagedConnectionInfo();
+
+		try
+		{
+			XAResource resource = mci.getManagedConnection().getXAResource();
+			mci.setXAResource( resource );
+			return;
+		}
+		catch(Exception ignores)
+		{
+		}
+
         mci.setXAResource(
                 new LocalXAResource(
                         mci.getManagedConnection().getLocalTransaction()));



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message