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 2005/08/27 21:12:57 UTC

svn commit: r240448 - /geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java

Author: djencks
Date: Sat Aug 27 12:12:55 2005
New Revision: 240448

URL: http://svn.apache.org/viewcvs?rev=240448&view=rev
Log:
Fix message-destination-refs with a # that we don't explicitly provide a geronimo descriptor for

Modified:
    geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java

Modified: geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java?rev=240448&r1=240447&r2=240448&view=diff
==============================================================================
--- geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java (original)
+++ geronimo/trunk/modules/naming-builder/src/java/org/apache/geronimo/naming/deployment/ENCConfigBuilder.java Sat Aug 27 12:12:55 2005
@@ -357,6 +357,12 @@
                     }
                     linkName = destination.getAdminObjectLink().trim();
                 }
+            } else {
+                //well, we know for sure an admin object is not going to be defined in a modules that can have a message-destination 
+                int pos = linkName.indexOf('#');
+                if (pos > -1) {
+                    linkName = linkName.substring(pos + 1);
+                }
             }
 
             //try to resolve ref based only matching resource-ref-name