User: juha    
  Date: 00/07/18 12:42:54

  Modified:    src/main/org/jboss/ejb ContainerFactory.java
  Log:
  Verifier's got its own logger.
  
  Revision  Changes    Path
  1.26      +15 -6     jboss/src/main/org/jboss/ejb/ContainerFactory.java
  
  Index: ContainerFactory.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- ContainerFactory.java     2000/07/14 18:44:27     1.25
  +++ ContainerFactory.java     2000/07/18 19:42:54     1.26
  @@ -66,7 +66,7 @@
   *   @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]">Juha Lindfors</a>
   *
  -*   @version $Revision: 1.25 $
  +*   @version $Revision: 1.26 $
   */
   public class ContainerFactory
        extends org.jboss.util.ServiceMBeanSupport
  @@ -225,9 +225,11 @@
                                undeploy(url);
   
               // Check validity
  +            Log.setLog(new Log("Verifier"));
  +            
  +            // wrapping this into a try - catch block to prevent errors in
  +            // verifier from stopping the deployment
               try {
  -                // wrapping this into a try - catch block to prevent errors in
  -                // verifier from stopping the deployment
                   
                   if (verifyDeployments)
                   {
  @@ -237,17 +239,24 @@
                       {
                          public void beanChecked(VerificationEvent event)
                          {
  -                            System.out.println("Got event: " + event.getMessage());
  +                            Log.getLog().log(event.getMessage());
                          }
                       });
       
  +                    
  +                    Log.getLog().log("Verifying " + url);
  +                    
                       verifier.verify(url);
                   }
               }
               catch (Throwable t) {
  -                System.out.println(t);
  +                Log.getLog().exception(t);
               }
  -    
  +            
  +            // unset verifier log
  +            Log.unsetLog();
  +            
  +            
                        app.setURL(url);
   
                        log.log("Deploying:"+url);
  
  
  

Reply via email to