[jboss-cvs] JBossAS SVN: r58392 - branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/xa

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 15 08:48:25 EST 2006


Author: weston.price at jboss.com
Date: 2006-11-15 08:48:24 -0500 (Wed, 15 Nov 2006)
New Revision: 58392

Added:
   branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/xa/JcaXAResourceWrapperFactory.java
Log:
[JBAS-3183]XAResourceWrapper work for MQSeries and other provider integration points.

Added: branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/xa/JcaXAResourceWrapperFactory.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/xa/JcaXAResourceWrapperFactory.java	2006-11-15 12:58:19 UTC (rev 58391)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/xa/JcaXAResourceWrapperFactory.java	2006-11-15 13:48:24 UTC (rev 58392)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.resource.connectionmanager.xa;
+
+import javax.transaction.xa.XAResource;
+
+/**
+ * A JcaXAResourceWrapperFactory.
+ * 
+ * @author <a href="weston.price at jboss.org">Weston Price</a>
+ * @version $Revision: 1.1 $
+ */
+public class JcaXAResourceWrapperFactory
+{
+   
+   public static JcaXAResourceWrapper getResourceWrapper(XAResource resource)
+   {
+      return getResourceWrapper(resource, false, null);
+      
+   }
+   public static JcaXAResourceWrapper getResourceWrapper(XAResource resource, boolean padXid)
+   {
+      return getResourceWrapper(resource, padXid, null);      
+   }
+
+   public static JcaXAResourceWrapper getResourceWrapper(XAResource resource, boolean padXid, Boolean isSameRMOverrideValue)
+   {
+    
+      JcaXAResourceWrapper wrapper = new JcaXAResourceWrapper(resource, padXid, isSameRMOverrideValue);
+      return wrapper;
+      
+   }
+}




More information about the jboss-cvs-commits mailing list