geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r509324 - /geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
Date Mon, 19 Feb 2007 20:28:38 GMT
Author: djencks
Date: Mon Feb 19 12:28:37 2007
New Revision: 509324

URL: http://svn.apache.org/viewvc?view=rev&rev=509324
Log:
fix a double typo. <jtaDataSource>foo</jtaDataSource> should now work

Modified:
    geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java

Modified: geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java?view=diff&rev=509324&r1=509323&r2=509324
==============================================================================
--- geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
Mon Feb 19 12:28:37 2007
@@ -143,7 +143,7 @@
         if (persistenceUnit.isSetJtaDataSource()) {
             String jtaDataSourceString = persistenceUnit.getJtaDataSource().trim();
             if (jtaDataSourceString.indexOf('=') == -1) {
-                jtaDataSourceString = "name=" + jtaDataSourceString;
+                jtaDataSourceString = "?name=" + jtaDataSourceString;
             }
             try {
                 AbstractNameQuery jtaDataSourceNameQuery = new AbstractNameQuery(new URI(jtaDataSourceString
+ "#org.apache.geronimo.connector.outbound.ConnectionFactorySource"));
@@ -156,7 +156,7 @@
         if (persistenceUnit.isSetNonJtaDataSource()) {
             String nonJtaDataSourceString = persistenceUnit.getNonJtaDataSource().trim();
             if (nonJtaDataSourceString.indexOf('=') == -1) {
-                nonJtaDataSourceString = "name=" + nonJtaDataSourceString;
+                nonJtaDataSourceString = "?name=" + nonJtaDataSourceString;
             }
             try {
                 AbstractNameQuery nonJtaDataSourceNameQuery = new AbstractNameQuery(new URI(nonJtaDataSourceString
+ "#org.apache.geronimo.connector.outbound.ConnectionFactorySource"));



Mime
View raw message