[jboss-cvs] JBossAS SVN: r58124 - trunk/ejb3/src/main/org/jboss/ejb3/client

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Nov 5 03:52:24 EST 2006


Author: scott.stark at jboss.org
Date: 2006-11-05 03:52:22 -0500 (Sun, 05 Nov 2006)
New Revision: 58124

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/client/ClientLauncher.java
Log:
Implement AppClientLauncher

Modified: trunk/ejb3/src/main/org/jboss/ejb3/client/ClientLauncher.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/client/ClientLauncher.java	2006-11-05 00:53:05 UTC (rev 58123)
+++ trunk/ejb3/src/main/org/jboss/ejb3/client/ClientLauncher.java	2006-11-05 08:52:22 UTC (rev 58124)
@@ -27,6 +27,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import org.jboss.client.AppClientLauncher;
 import org.jboss.ejb3.metamodel.ApplicationClientDD;
 import org.jboss.ejb3.metamodel.ApplicationClientDDObjectFactory;
 import org.jboss.ejb3.metamodel.JBossClientDDObjectFactory;
@@ -44,6 +45,7 @@
  * @version $Revision: $
  */
 public class ClientLauncher
+   implements AppClientLauncher
 {
    private static URL findResource(String resourceName)
    {
@@ -76,22 +78,8 @@
       
       // TODO: preDestroy
    }
-   
+
    /**
-    * Convenience method for launching a client container.
-    * 
-    * @param mainClassName
-    * @param applicationClientName
-    * @param args
-    * @throws Exception
-    */
-   public static void launch(String mainClassName, String applicationClientName, String args[]) throws Exception
-   {
-      ApplicationClientDD xml = loadXML();
-      launch(xml, mainClassName, applicationClientName, args);
-   }
-   
-   /**
     * Convenience method to load the XML descriptor.
     * 
     * @return
@@ -171,4 +159,19 @@
       }
    }
 
+   /**
+    * The AppClientLauncher method for launching a client container.
+    * 
+    * @param mainClassName - the class whose main(String[]) will be invoked
+    * @param clientName - the client name that maps to the server side JNDI ENC
+    * @param args - the args to pass to main method
+    * @throws Throwable
+    */
+   public void launch(String mainClassName, String clientName, String args[])
+      throws Throwable
+   {
+      ApplicationClientDD xml = loadXML();
+      launch(xml, mainClassName, clientName, args);
+   }
+
 }




More information about the jboss-cvs-commits mailing list