User: jules_gosnell
Date: 01/06/13 17:21:37
Modified: jetty/src/main/org/jboss/jetty JettyService.java
Log:
avoid duplicate start(),stop(),destroy() being called
Revision Changes Path
1.15 +4 -12 contrib/jetty/src/main/org/jboss/jetty/JettyService.java
Index: JettyService.java
===================================================================
RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JettyService.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- JettyService.java 2001/06/04 23:38:08 1.14
+++ JettyService.java 2001/06/14 00:21:37 1.15
@@ -36,7 +36,7 @@
*
* @see <related>
* @author <a href="mailto:[EMAIL PROTECTED]">Julian Gosnell</a>
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
class JettyMBean extends HttpServerMBean
@@ -286,12 +286,9 @@
startService()
throws Exception
{
- super.startService();
-
Log.setLog(_log);
com.mortbay.Util.Log.event("Starting (jetty.mortbay.com)");
- // should check whether already running ? TODO
- _jetty.start();
+ super.startService();
com.mortbay.Util.Log.event("Started successfully");
Log.unsetLog();
}
@@ -299,22 +296,17 @@
public void
stopService()
{
- super.stopService();
-
- // should check whether already stopped ? TODO
com.mortbay.Util.Log.event("Stopping: if using sun jdk 1.3 on linux, waits 1
minute for Sun bug 4386498... ");
- try {_jetty.stop();} catch (Exception e) {e.printStackTrace();}
+ super.stopService();
com.mortbay.Util.Log.event("Stopped Successfully");
}
public void
destroyService()
{
- super.destroyService();
-
Log.setLog(_log);
com.mortbay.Util.Log.event("Destroying (jetty.mortbay.com)");
- _jetty.destroy();
+ super.destroyService();
com.mortbay.Util.Log.event("Destroyed successfully");
Log.unsetLog();
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development