geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1101393 - /geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
Date Tue, 10 May 2011 10:10:55 GMT
Author: genspring
Date: Tue May 10 10:10:55 2011
New Revision: 1101393

URL: http://svn.apache.org/viewvc?rev=1101393&view=rev
Log:
LifecycleMethodBuilder.buildNaming() need the applicatoin client main class info in specDD.

Modified:
    geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java

Modified: geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java?rev=1101393&r1=1101392&r2=1101393&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
(original)
+++ geronimo/server/trunk/plugins/client/geronimo-client-builder/src/main/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
Tue May 10 10:10:55 2011
@@ -706,6 +706,12 @@ public class AppClientModuleBuilder impl
                         // (or not)
                         appClientModule.setClassFinder(createAppClientClassFinder(appClient,
appClientModule));
                     }
+                    
+                    if (appClient.getMainClass() == null) {
+                        //LifecycleMethodBuilder.buildNaming() need the main class info in
appClient specDD.
+                        appClient.setMainClass(appClientModule.getMainClassName());
+                    }
+                    
                     appClientModule.getJndiScope(JndiScope.module).put("module/ModuleName",
module.getName());
                     namingBuilders.buildNaming(appClient, geronimoAppClient, appClientModule,
buildingContext);
 



Mime
View raw message