User: mnf999
Date: 02/02/01 15:37:35
Modified: src/main/org/jboss/web AbstractWebContainer.java
Log:
Ooops the war deployers would not register themselves before
Revision Changes Path
1.13 +37 -1 jboss/src/main/org/jboss/web/AbstractWebContainer.java
Index: AbstractWebContainer.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/web/AbstractWebContainer.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- AbstractWebContainer.java 2002/01/20 15:22:12 1.12
+++ AbstractWebContainer.java 2002/02/01 23:37:35 1.13
@@ -117,7 +117,7 @@
@see org.jboss.security.SecurityAssociation;
@author [EMAIL PROTECTED]
-@version $Revision: 1.12 $
+@version $Revision: 1.13 $
*/
public abstract class AbstractWebContainer
extends ServiceMBeanSupport
@@ -521,6 +521,42 @@
Util.bind(envCtx, name, new LinkRef(jndiName));
}
}
+
+
+
+ public void startService()
+ {
+ try
+ {
+ // Register with the main deployer
+ server.invoke(
+ new ObjectName(org.jboss.deployment.MainDeployerMBean.OBJECT_NAME),
+ "addDeployer",
+ new Object[] {this},
+ new String[] {"org.jboss.deployment.DeployerMBean"});
+ }
+ catch (Exception e) {log.error("Could not register with MainDeployer", e);}
+ }
+ /**
+ * Implements the template method in superclass. This method stops all the
+ * applications in this server.
+ */
+ public void stopService()
+ {
+ try
+ {
+ // Register with the main deployer
+ server.invoke(
+ new ObjectName(org.jboss.deployment.MainDeployerMBean.OBJECT_NAME),
+ "removeDeployer",
+ new Object[] {this},
+ new String[] {"org.jboss.deployment.DeployerMBean"});
+ }
+ catch (Exception e) {log.error("Could not register with MainDeployer", e);}
+
+ }
+
+
/** This creates a java:comp/env/security context that contains a
securityMgr binding pointing to an AuthenticationManager implementation
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development