User: sylvain 
  Date: 00/05/30 16:28:11

  Modified:    src/java/org/ejboss/deployment/deployer/implementations
                        DeployerBean.java
  Log:
  added verbosity
  
  Revision  Changes    Path
  1.5       +41 -41    
ejboss/src/java/org/ejboss/deployment/deployer/implementations/DeployerBean.java
  
  Index: DeployerBean.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/ejboss/src/java/org/ejboss/deployment/deployer/implementations/DeployerBean.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DeployerBean.java 2000/05/26 22:59:36     1.4
  +++ DeployerBean.java 2000/05/30 23:28:10     1.5
  @@ -14,66 +14,66 @@
   
   public class DeployerBean implements SessionBean {
   
  -    private SessionContext sessionContext;
  -    private org.ejboss.deployment.Deployer deployer;
  +     private SessionContext sessionContext;
  +     private org.ejboss.deployment.Deployer deployer;
   
  -    public void ejbCreate() throws RemoteException, CreateException {
  -
  -        System.out.println("DeployerBean.ejbCreate");
  -    }
  -    
  -    public void ejbActivate() throws RemoteException {
  +     public void ejbCreate() throws RemoteException, CreateException {
  +        
  +             System.out.println("DeployerBean.ejbCreate");
  +     }
  +     
  +     public void ejbActivate() throws RemoteException {
   
  -        System.out.println("DeployerBean.ejbActivate");
  -    }
  +             System.out.println("DeployerBean.ejbActivate");
  +     }
   
  -    public void ejbPassivate() throws RemoteException {
  +     public void ejbPassivate() throws RemoteException {
   
  -        System.out.println("DeployerBean.ejbPassivate");
  -    }
  +             System.out.println("DeployerBean.ejbPassivate");
  +     }
   
  -    public void ejbRemove() throws RemoteException {
  +     public void ejbRemove() throws RemoteException {
   
  -        System.out.println("DeployerBean.ejbRemove");
  -    }
  +             System.out.println("DeployerBean.ejbRemove");
  +     }
   
  -    public void setSessionContext(SessionContext context) throws RemoteException {
  +     public void setSessionContext(SessionContext context) throws RemoteException {
   
  -        System.out.println("DeployerBean.setSessionContext");
  -        sessionContext = context;
  +             System.out.println("DeployerBean.setSessionContext");
  +             sessionContext = context;
   
  -        // Initialize the server reference
  +             // Initialize the server reference
   
  -        deployer = Deployer.getDeployer();
  -    }
  +             deployer = Deployer.getDeployer();
  +     }
   
  -    public Collection deployJar(URL jarURL) throws DeployerException {
  +     public Collection deployJar(URL jarURL) throws DeployerException {
   
  -         return deployJar(jarURL, "default owner", "default application");
  -    }
  +              return deployJar(jarURL, "defaultOwner", "default application");
  +     }
        
        public Collection deployJar(URL jarURL, String owner, String application) 
throws DeployerException {
                 
                 if (jarURL != null) {
   
  -            System.out.println("DeployerBean.deployJar("+ jarURL.toString()+")");
  +                     System.out.println("DeployerBean.deployJar("+ 
jarURL.toString()+") Owner="+owner+" app="+application);
   
  -            try {
  -                EjbJar ejbJar = new EjbJar(jarURL);
  -                ejbJar.setClientJar(jarURL.toString());
  -                return deployer.deploy(ejbJar, owner, application);
  -            }
  -            catch (Exception e) {
  -                System.out.println("Deployment failed");
  -                e.printStackTrace();
  -                throw new DeployerException(e.getMessage());
  -            }
  -        }
  +                     try {
  +                             EjbJar ejbJar = new EjbJar(jarURL);
  +                             ejbJar.setClientJar(jarURL.toString());
  +                             return deployer.deploy(ejbJar, owner, application);
  +                     }
  +                     catch (Exception e) {
  +                             System.out.println("Deployment failed");
  +                             e.printStackTrace();
  +                             throw new DeployerException(e.getMessage());
  +                     }
  +             }
   
  -        else { // a null jarURL
  +             else { // a null jarURL
   
  -            throw new DeployerException("Null jarURL was passed");
  -        }
  +                     throw new DeployerException("Null jarURL was passed");
  +             }
                
        }
  -}
  \ No newline at end of file
  +}
  
  
  

Reply via email to