You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2007/03/09 16:08:48 UTC

svn commit: r516425 - /geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java

Author: djencks
Date: Fri Mar  9 07:08:47 2007
New Revision: 516425

URL: http://svn.apache.org/viewvc?view=rev&rev=516425
Log:
GERONIMO-2934 AdminObjectRefBuilder should only work with annotations it can positively identify

Modified:
    geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java

Modified: geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java?view=diff&rev=516425&r1=516424&r2=516425
==============================================================================
--- geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java (original)
+++ geronimo/server/trunk/modules/geronimo-connector-builder/src/main/java/org/apache/geronimo/connector/deployment/AdminObjectRefBuilder.java Fri Mar  9 07:08:47 2007
@@ -364,10 +364,10 @@
             }
 
             //------------------------------------------------------------------------------------------
-            // 5. Everything else must be a <resource-env-ref>
+            // 5. InteractionSpecs <resource-env-ref>
+            // There are a lot of choices that aren't covered...
             //------------------------------------------------------------------------------------------
-            else if (annotation.type().getCanonicalName().equals("javax.resource.cci.InteractionSpec") ||
-                    annotation.type().getCanonicalName().equals("javax.transaction.UserTransaction") || true) {
+            else if (annotation.type().getCanonicalName().equals("javax.resource.cci.InteractionSpec") ) {
 
                 log.debug("addResource(): <resource-env-ref> found");