[jboss-cvs] JBossAS SVN: r59774 - 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
Thu Jan 18 09:29:11 EST 2007


Author: weston.price at jboss.com
Date: 2007-01-18 09:29:11 -0500 (Thu, 18 Jan 2007)
New Revision: 59774

Modified:
   branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/HAXAManagedConnectionFactory.java
Log:
[JBAS-3828] Fixed url-delimiter typo in HA datasource. 

Modified: branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/HAXAManagedConnectionFactory.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/HAXAManagedConnectionFactory.java	2007-01-18 14:28:40 UTC (rev 59773)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/xa/HAXAManagedConnectionFactory.java	2007-01-18 14:29:11 UTC (rev 59774)
@@ -48,7 +48,7 @@
    private static final long serialVersionUID = 1898242235188801452L;
 
    private String urlProperty;
-   private String urlDelimeter;
+   private String urlDelimiter;
    private XADataSelector xadsSelector;
 
    public String getURLProperty()
@@ -62,14 +62,14 @@
       initSelector();
    }
 
-   public String getURLDelimeter()
+   public String getURLDelimiter()
    {
-      return urlDelimeter;
+      return urlDelimiter;
    }
 
-   public void setURLDelimeter(String urlDelimeter) throws ResourceException
+   public void setURLDelimiter(String urlDelimetir) throws ResourceException
    {
-      this.urlDelimeter = urlDelimeter;
+      this.urlDelimiter = urlDelimetir;
       initSelector();
    }
 
@@ -92,7 +92,7 @@
             buffer.append(" No url property.");
          else if (xaProps.containsKey(urlProperty) == false)
             buffer.append(" ").append(urlProperty).append(" not found in datasource properties.");
-         if (urlDelimeter == null)
+         if (urlDelimiter == null)
             buffer.append(" No url-delimiter.");
          throw new JBossResourceException(buffer.toString());
       }
@@ -211,7 +211,7 @@
       if(urlProperty != null && urlProperty.length() > 0)
       {
          String urlsStr = xaProps.getProperty(urlProperty);
-         if(urlsStr != null && urlsStr.trim().length() > 0 && urlDelimeter != null && urlDelimeter.trim().length() > 0)
+         if(urlsStr != null && urlsStr.trim().length() > 0 && urlDelimiter != null && urlDelimiter.trim().length() > 0)
          {
             List xaDataList = new ArrayList();
 
@@ -226,7 +226,7 @@
             }
 
             int urlStart = 0;
-            int urlEnd = urlsStr.indexOf(urlDelimeter);
+            int urlEnd = urlsStr.indexOf(urlDelimiter);
             while(urlEnd > 0)
             {
                String url = urlsStr.substring(urlStart, urlEnd);
@@ -234,7 +234,7 @@
                XADataSource xads = createXaDataSource(xaPropsCopy);
                xaDataList.add(new XAData(xads, url));
                urlStart = ++urlEnd;
-               urlEnd = urlsStr.indexOf(urlDelimeter, urlEnd);
+               urlEnd = urlsStr.indexOf(urlDelimiter, urlEnd);
                log.debug("added XA HA connection url: " + url);
             }
 




More information about the jboss-cvs-commits mailing list