[jboss-cvs] JBossAS SVN: r60398 - branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 7 14:26:50 EST 2007


Author: weston.price at jboss.com
Date: 2007-02-07 14:26:50 -0500 (Wed, 07 Feb 2007)
New Revision: 60398

Modified:
   branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java
Log:
[JBAS-4072] Allow for 'is' form of XADataSource properties. 

Modified: branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java	2007-02-07 19:25:22 UTC (rev 60397)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java	2007-02-07 19:26:50 UTC (rev 60398)
@@ -236,6 +236,19 @@
                catch (NoSuchMethodException e)
                {
                   type = String.class;
+                  
+                  try
+                  {
+                     //HACK for now until we can rethink the XADataSourceProperties variable and pass type information
+                     Method getter = clazz.getMethod("is" + name, NOCLASSES);
+                     type = getter.getReturnType();
+                     
+                  }catch(NoSuchMethodException nsme)
+                  {
+                     type = String.class;                     
+                  
+                  }
+                                    
                }
 
                Method setter = clazz.getMethod("set" + name, new Class[] { type });




More information about the jboss-cvs-commits mailing list