User: d_jencks
Date: 02/03/04 21:35:38
Modified: src/main/org/jboss/system/server ServerImpl.java
Log:
fix for bug 525445. Added JARDeployer that will only deploy jars or directories
with no WEB-INF directory and no xml files in META-INF. Modified MainDeployer to
require a deployer, and keep a list of packages waiting for a deployer.
MainDeployerMBean is now generated by xdoclet.
Revision Changes Path
1.10 +15 -1 jboss-system/src/main/org/jboss/system/server/ServerImpl.java
Index: ServerImpl.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-system/src/main/org/jboss/system/server/ServerImpl.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ServerImpl.java 5 Mar 2002 03:01:02 -0000 1.9
+++ ServerImpl.java 5 Mar 2002 05:35:38 -0000 1.10
@@ -45,7 +45,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
public class ServerImpl
implements Server, ServerImplMBean
@@ -275,6 +275,7 @@
// Main Deployer
mainDeployer =
server.createMBean("org.jboss.deployment.MainDeployer", null,
loaderName).getObjectName();
+
// Install the shutdown hook
shutdownHook = new ShutdownHook(controllerName);
@@ -294,6 +295,19 @@
new Object[] { mainDeployer },
new String[] { ObjectName.class.getName() });
+ //Jar Deployer
+ ObjectName jarDeployer =
server.createMBean("org.jboss.deployment.JARDeployer", null,
loaderName).getObjectName();
+ server.invoke(controllerName,
+ "create",
+ new Object[] { jarDeployer },
+ new String[] { ObjectName.class.getName() });
+
+ server.invoke(controllerName,
+ "start",
+ new Object[] { jarDeployer },
+ new String[] { ObjectName.class.getName() });
+
+
// SAR Deployer
server.createMBean("org.jboss.deployment.SARDeployer", null, loaderName);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development