User: d_jencks
Date: 01/11/11 22:36:49
Modified: jboss.net/src/main/org/jboss/net/axis/server
AxisService.java
Log:
Changes to move toward eliminating init and destroy from Service interface, and make
J2eeDeployer use mbean-refs.
Revision Changes Path
1.3 +8 -16
contrib/jboss.net/src/main/org/jboss/net/axis/server/AxisService.java
Index: AxisService.java
===================================================================
RCS file:
/cvsroot/jboss/contrib/jboss.net/src/main/org/jboss/net/axis/server/AxisService.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AxisService.java 2001/10/07 20:06:11 1.2
+++ AxisService.java 2001/11/12 06:36:49 1.3
@@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
-// $Id: AxisService.java,v 1.2 2001/10/07 20:06:11 cgjung Exp $
+// $Id: AxisService.java,v 1.3 2001/11/12 06:36:49 d_jencks Exp $
package org.jboss.net.axis.server;
@@ -62,7 +62,7 @@
* A deployer service that installs and manages Axis within JMX.
* @created 27. September 2001
* @author <a href="mailto:[EMAIL PROTECTED]">Christoph G. Jung</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class AxisService extends DeployerMBeanSupport implements AxisServiceMBean,
MBeanRegistration, Constants {
@@ -146,18 +146,14 @@
}
}
- /** initialise service */
- public void initService() throws Exception {
+
+ /** start service = register Axis servlet in WebContainer */
+ protected void startService() throws Exception {
if (!isInitialised()) {
ensureService();
- super.initService();
setInitialised(true);
} else
category.warn(AXIS_ALREADY_INITIALIZED);
- }
-
- /** start service = register Axis servlet in WebContainer */
- public void startService() throws Exception {
super.startService();
// we find out through which URLClassLoader we have been loaded
@@ -209,7 +205,7 @@
}
/** what to do to stop axis temporarily --> undeploy the servlet */
- public void stopService() {
+ protected void stopService() {
super.stopService();
try {
// undeploy axis servlet
@@ -224,12 +220,7 @@
} finally {
myUrl=null;
}
- }
-
- /** take the complete engine down */
- public void destroyService() {
if (isInitialised()) {
- super.destroyService();
synchronized(AxisService.class) {
((AxisServer) axisServerMap.get(getRootContext())).stop();
axisServerMap.remove(getRootContext());
@@ -241,6 +232,7 @@
category.warn(AXIS_ALREADY_DESTROYED);
}
+
//----------------------------------------------------------------------------
// static helper that relates contexts and axis engines
//----------------------------------------------------------------------------
@@ -445,4 +437,4 @@
}
}
-}
\ No newline at end of file
+}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development