[jboss-cvs] JBossAS SVN: r73027 - trunk/connector/src/main/org/jboss/resource/adapter/jdbc/xa.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 2 13:09:49 EDT 2008


Author: vicky.kak at jboss.com
Date: 2008-05-02 13:09:49 -0400 (Fri, 02 May 2008)
New Revision: 73027

Modified:
   trunk/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java
Log:
JBAS-4662 changes.

Modified: trunk/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java	2008-05-02 16:41:30 UTC (rev 73026)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnectionFactory.java	2008-05-02 17:09:49 UTC (rev 73027)
@@ -158,6 +158,11 @@
       {
          String name = (String)i.next();
          String value = xaProps.getProperty(name);
+         char firstCharName = Character.toUpperCase(name.charAt(0));
+     	 if (name.length() > 1)
+     		 name = firstCharName+name.substring(1);
+     	 else
+      		 name = ""+firstCharName;            		              	                              		              	                          
          //This is a bad solution.  On the other hand the only known example
          // of a setter with no getter is for Oracle with password.
          //Anyway, each xadatasource implementation should get its
@@ -398,7 +403,7 @@
 
    public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri)
    		throws javax.resource.ResourceException
-   {
+   {	   
 	   if(xadsSelector == null)
 	   {
 		  return getXAManagedConnection(subject,cri);
@@ -515,7 +520,7 @@
    }
 
    protected synchronized XADataSource getXADataSource() throws ResourceException
-   { 
+   {	  
 	  if(xadsSelector != null)
 	  {
 		   XAData xada = (XAData)xadsSelector.getUrlObject();
@@ -533,7 +538,12 @@
             for (Iterator i = xaProps.keySet().iterator(); i.hasNext();)
             {
                String name = (String) i.next();
-               String value = xaProps.getProperty(name);
+               String value = xaProps.getProperty(name);      
+               char firstCharName = Character.toUpperCase(name.charAt(0));
+           	   if (name.length() > 1)
+            	       name = firstCharName+name.substring(1);
+           	   else
+            		   name = ""+firstCharName;            		              	                              		              	                 
                //This is a bad solution.  On the other hand the only known example
                // of a setter with no getter is for Oracle with password.
                //Anyway, each xadatasource implementation should get its




More information about the jboss-cvs-commits mailing list