User: schaefera
  Date: 01/12/01 13:29:45

  Modified:    src/main/org/jboss/deployment J2eeDeployer.java
  Log:
  Fixed the problem with Jetty on Windows as well as remove the obsolete
  DataCollector from the J2eeDeployers.
  
  Revision  Changes    Path
  1.49      +1 -44     jboss/src/main/org/jboss/deployment/J2eeDeployer.java
  
  Index: J2eeDeployer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/deployment/J2eeDeployer.java,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- J2eeDeployer.java 2001/11/26 21:46:50     1.48
  +++ J2eeDeployer.java 2001/12/01 21:29:45     1.49
  @@ -60,7 +60,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Toby Allsopp</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>.
  - * @version $Revision: 1.48 $
  + * @version $Revision: 1.49 $
    */
   
   public class J2eeDeployer
  @@ -196,16 +196,10 @@
      {
         URL url = new URL(_url);
         
  -      // <comment author="cgjung">factored out for subclass access </comment>
  -      ObjectName lCollector = createCollectorName();
  -      
         // undeploy first if it is a redeploy
         try
         {
            undeploy(_url);
  -         // Remove application data by its id
  -         // <comment author="cgjung"> factored out for subclass access </comment>
  -         removeFromCollector(_url,lCollector);
         }
         catch (Exception _e)
         {
  @@ -253,43 +247,6 @@
               log.error("fatal error:", _e);
               throw new J2eeDeploymentException("fatal error: "+_e);
            }
  -      }
  -   }
  -   
  -   /** creation of collector name  factored out.
  -    *  @author schaefera
  -    *  @author cgjung
  -    */
  -   protected ObjectName createCollectorName()
  -   {
  -      try
  -      {
  -         return new ObjectName( "Management", "service", "Collector" );
  -      }
  -      catch( Exception e )
  -      {
  -         return null;
  -      }
  -   }
  -   
  -   /** report of removal to data collector factored out for subclass access
  -    *  a try/catch for dealing with an uninstalled collector has been added.
  -    *  @author schaefera
  -    *  @author cgjung
  -    */
  -   protected void removeFromCollector(String _url, ObjectName lCollector)
  -   {
  -      try
  -      {
  -         server.invoke(lCollector,
  -            "removeApplication",
  -            new Object[] { _url },
  -            new String[]{ "java.lang.String" }
  -         );
  -      }
  -      catch(Exception e)
  -      {
  -         log.info("Report of undeployment of J2EE application: " + _url + " could 
not be reported.");
         }
      }
      
  
  
  

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

Reply via email to