User: user57
Date: 02/01/02 20:00:59
Modified: src/main/org/jboss/jmx/service Deployer.java
Log:
o migrated all components to a new JMX domain name model. jboss.system
is now where to core/spine components live. moved all components that
were in JBOSS-SYSTEM that did not move into a jboss.* domain into
jboss (where the server is now registered). The point was to limit the
members of jboss.system to core bits only.
o Created org.jboss.system.Server, which does the work of initialization
that org.jboss.Main used to do. Main now only parses the command line,
sets up basic legecy properties and creates a Server instance.
o Moved functionality of Shutdown (component not cl tool) into Server (
which is bound as jboss.system:service=Server)
o Moved more Runtime access from Info into Server. Exposed memory info
as attributes.
o Logging a WARN everywhere that uses System.getProperty("jboss.system.home")
as that should go away soon/eventually.
o Initialized the invokerMap in the harmi impl to avoid NPE
o Made getopt.jar a member of the lib/* dir instead of adding it to the
run.jar and shutdown.jars each time.
o Minor cosmetic changes along the way.
Revision Changes Path
1.4 +27 -24 jboss/src/main/org/jboss/jmx/service/Deployer.java
Index: Deployer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jmx/service/Deployer.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Deployer.java 2001/10/11 01:42:00 1.3
+++ Deployer.java 2002/01/03 04:00:58 1.4
@@ -1,9 +1,10 @@
/*
-* JBoss, the OpenSource J2EE webOS
-*
-* Distributable under LGPL license.
-* See terms of license at gnu.org.
-*/
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+
package org.jboss.jmx.service;
import java.io.File;
@@ -25,14 +26,14 @@
import org.jboss.jmx.connector.RemoteMBeanServer;
/**
-* A JMX client to deploy an application into a running JBoss server.
-*
-* @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
-* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
-* @author <a href="mailto:[EMAIL PROTECTED]">Christoph G. Jung</a>
-* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
-* @version $Revision: 1.3 $
-*/
+ * A JMX client to deploy an application into a running JBoss server.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Christoph G. Jung</a>
+ * @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>
+ * @version $Revision: 1.4 $
+ */
public class Deployer
{
/**
@@ -42,7 +43,8 @@
* server to use if not the local one
*/
public static void main(final String[] args)
- throws Exception {
+ throws Exception
+ {
// Check for option "-server"
String lServer = InetAddress.getLocalHost().getHostName();
for( int i = 0; i < args.length; i++ ) {
@@ -50,13 +52,15 @@
lServer = args[ i + 1 ];
}
}
+
for (int count=0;count<args.length;count++) {
if (!args[count].equalsIgnoreCase("-undeploy")) {
System.out.println("Deploying " + args[count]);
new Deployer( lServer ).deploy(args[count]);
System.out.println(args[count] +
" has been deployed successfully");
- } else {
+ }
+ else {
System.out.println("Undeploying " + args[++count]);
new Deployer( lServer ).undeploy(args[count]);
System.out.println(args[count] +
@@ -68,13 +72,13 @@
private String mServerName;
/**
- * Creates a deployer accessing the RMI Connector for
- * the given server
- *
- * @param pServerName Name of the server (how it is registered on
- * the JNDI server as second part of the name
- * (name spec is: "jmx:<server name>:rmi").
- **/
+ * Creates a deployer accessing the RMI Connector for
+ * the given server
+ *
+ * @param pServerName Name of the server (how it is registered on
+ * the JNDI server as second part of the name
+ * (name spec is: "jmx:<server name>:rmi").
+ */
public Deployer( String pServerName ) {
mServerName = pServerName;
}
@@ -109,7 +113,7 @@
protected ObjectName getFactoryName()
throws MalformedObjectNameException
{
- return new ObjectName("J2EE:service=J2eeDeployer");
+ return new ObjectName("jboss.j2ee:service=J2eeDeployer");
}
/**
@@ -182,4 +186,3 @@
}
}
}
-
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development