geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r740258 - /geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java
Date Tue, 03 Feb 2009 09:29:24 GMT
Author: vamsic007
Date: Tue Feb  3 09:29:24 2009
New Revision: 740258

URL: http://svn.apache.org/viewvc?rev=740258&view=rev
Log:
Replace strings with constants from NameFactory.

Modified:
    geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java

Modified: geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java?rev=740258&r1=740257&r2=740258&view=diff
==============================================================================
--- geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java
(original)
+++ geronimo/plugins/tuscany/trunk/geronimo-tuscany-implementation-ejb/src/main/java/org/apache/tuscany/sca/implementation/ejb/invocation/EjbImplementationInvoker.java
Tue Feb  3 09:29:24 2009
@@ -27,6 +27,7 @@
 
 import org.apache.geronimo.gbean.AbstractName;
 import org.apache.geronimo.gbean.AbstractNameQuery;
+import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
 import org.apache.geronimo.kernel.Kernel;
 import org.apache.geronimo.kernel.KernelRegistry;
 import org.apache.geronimo.kernel.repository.Artifact;
@@ -83,7 +84,7 @@
                 beanName = ejbLink.substring(ejbLink.indexOf("#")+1);
                 moduleName = ejbLink.substring(0, ejbLink.indexOf("#"));
             }
-            map.put("name", beanName);
+            map.put(NameFactory.J2EE_NAME, beanName);
             AbstractNameQuery query = new AbstractNameQuery(artifact, map);
             Set<AbstractName> gbeans = kernel.listGBeans(query);
             AbstractName ejbGbeanName = null;
@@ -92,7 +93,7 @@
             } else {
                 for(Iterator<AbstractName> itr = gbeans.iterator(); itr.hasNext();)
{
                     AbstractName temp = itr.next();
-                    if(moduleName.equals(ejbGbeanName.getNameProperty("EJBModule"))) {
+                    if(moduleName.equals(ejbGbeanName.getNameProperty(NameFactory.EJB_MODULE)))
{
                         ejbGbeanName = temp;
                         break;
                     }



Mime
View raw message