User: schaefera
  Date: 01/05/22 15:30:49

  Modified:    src/main/org/jboss/ejb ContainerFactory.java
  Log:
  Catch the exceptions for the management calls because the installation
  is optional.
  
  Revision  Changes    Path
  1.69      +29 -20    jboss/src/main/org/jboss/ejb/ContainerFactory.java
  
  Index: ContainerFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- ContainerFactory.java     2001/05/22 05:08:00     1.68
  +++ ContainerFactory.java     2001/05/22 22:30:49     1.69
  @@ -82,7 +82,7 @@
   *   @author Peter Antman ([EMAIL PROTECTED])
   *   @author Scott Stark([EMAIL PROTECTED])
   *
  -*   @version $Revision: 1.68 $
  +*   @version $Revision: 1.69 $
   */
   public class ContainerFactory
     extends org.jboss.util.ServiceMBeanSupport
  @@ -351,22 +351,29 @@
         log.log( "Deployed application: " + app.getName() );
         // Register deployment. Use the application name in the hashtable
         deployments.put( appUrl, app );
  -      // Save EJBs management data: application
  -      log.log( "Add module: " + module + ", to app: " + appId );
  -      getServer().invoke(
  -          new ObjectName( "Management", "service", "Collector" ),
  -         "saveModule",
  -         new Object[] {
  -            appId,
  -            new Integer( org.jboss.mgt.Application.EJBS ),
  -            module
  -         },
  -         new String[] {
  -            String.class.getName(),
  -            Integer.TYPE.getName(),
  -            module.getClass().getName()
  +      try
  +         {
  +         // Save EJBs management data: application
  +         log.log( "Add module: " + module + ", to app: " + appId );
  +         getServer().invoke(
  +             new ObjectName( "Management", "service", "Collector" ),
  +            "saveModule",
  +            new Object[] {
  +               appId,
  +               new Integer( org.jboss.mgt.Application.EJBS ),
  +               module
  +            },
  +            new String[] {
  +               String.class.getName(),
  +               Integer.TYPE.getName(),
  +               module.getClass().getName()
  +            }
  +         );
            }
  -      );
  +      catch( Exception e )
  +         {
  +         log.exception( e );
  +         }
         }
       catch( Exception e )
         {
  @@ -460,6 +467,7 @@
           module.addItem( ejb );
           ejb.setName( bean.getEjbName() );
           app.addContainer( createContainer( bean, cl, localCl, ejb ) );
  +        ejb.setDeployed( true );
           }
       }
   
  @@ -488,7 +496,7 @@
       app.stop();
       app.destroy();
       try
  -    {
  +       {
          // Remove EJBs management data
          getServer().invoke(
             new ObjectName( "Management", "service", "Collector" ),
  @@ -502,10 +510,11 @@
                Integer.TYPE.getName()
             }
          );
  -    }
  -    catch( Exception e ) {
  +       }
  +    catch( Exception e )
  +       {
          log.exception( e );
  -    }
  +       }
       try {
           if ( app.getClassLoader() != null ) {
               // Remove from webserver 
  
  
  

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

Reply via email to