User: jules_gosnell
  Date: 01/05/08 16:02:30

  Modified:    jetty/src/main/org/jboss/jetty Jetty.java
  Log:
  ensure MBean corresponding to WebApp is properly registered and deregistered
  
  Revision  Changes    Path
  1.3       +6 -1      contrib/jetty/src/main/org/jboss/jetty/Jetty.java
  
  Index: Jetty.java
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/Jetty.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Jetty.java        2001/05/02 21:13:16     1.2
  +++ Jetty.java        2001/05/08 23:02:30     1.3
  @@ -243,6 +243,8 @@
         // deploy the WebApp
         WebApplicationContext app=new WebApplicationContext(this, path+"/*");
   
  +      addContext(null, app);
  +
         // Use the same ClassLoader as JBoss - this allows optimisation
         // of calls to EJBs...
         app.setClassLoader(Thread.currentThread().getContextClassLoader());
  @@ -281,8 +283,11 @@
       try
       {
         app.stop();
  +
         removeContext(app);
  -      _deployed.remove(app);
  +
  +      _deployed.remove(warUrl);
  +
         Log.event("successfully undeployed "+warUrl);
       }
       catch (Exception e)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to