User: user57  
  Date: 02/04/03 00:23:27

  Modified:    src/main/org/jboss/resource RARDeployer.java
                        RARDeployerMBean.java
  Log:
   o DeployerMBean -> SubDeployer
   o Extending SubDeployerSupport
  
  Revision  Changes    Path
  1.23      +9 -39     jbosscx/src/main/org/jboss/resource/RARDeployer.java
  
  Index: RARDeployer.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployer.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- RARDeployer.java  6 Mar 2002 01:07:45 -0000       1.22
  +++ RARDeployer.java  3 Apr 2002 08:23:26 -0000       1.23
  @@ -31,7 +31,9 @@
   import javax.management.ObjectName;
   
   import org.jboss.deployment.DeploymentInfo;
  +import org.jboss.deployment.SubDeployerSupport;
   import org.jboss.deployment.DeploymentException;
  +
   import org.jboss.logging.Logger;
   import org.jboss.metadata.XmlFileLoader;
   import org.jboss.system.ServiceLibraries;
  @@ -44,15 +46,15 @@
   import org.w3c.dom.Element;
   
   /**
  - *  Service that deploys ".rar" files containing resource adapters. Deploying
  - *  the RAR file is the first step in making the resource adapter available to
  - *  application components; once it is deployed, one or more connection
  - *  factories must be configured and bound into JNDI, a task performed by the
  - *  <code>ConnectionFactoryLoader</code> service.
  + * Service that deploys ".rar" files containing resource adapters. Deploying
  + * the RAR file is the first step in making the resource adapter available to
  + * application components; once it is deployed, one or more connection
  + * factories must be configured and bound into JNDI, a task performed by the
  + * <code>ConnectionFactoryLoader</code> service.
    *
    * @author     Toby Allsopp ([EMAIL PROTECTED])
    * @author     <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version    $Revision: 1.22 $
  + * @version    $Revision: 1.23 $
    * @see        org.jboss.resource.ConnectionFactoryLoader <p>
    *
    * <b>Revisions:</b> <p>
  @@ -74,7 +76,7 @@
    * </ul>
    */
   public class RARDeployer
  -   extends ServiceMBeanSupport
  +   extends SubDeployerSupport
      implements RARDeployerMBean
   {
      private static int nextNum = 0;
  @@ -282,37 +284,5 @@
            server,
            rdi.shortName
         );
  -   }
  -   
  -   public void startService()
  -   {
  -      try
  -      {
  -         // Register with the main deployer
  -         server.invoke(
  -            org.jboss.deployment.MainDeployerMBean.OBJECT_NAME,
  -            "addDeployer",
  -            new Object[] {this},
  -            new String[] {"org.jboss.deployment.DeployerMBean"});
  -      }
  -      catch (Exception e) {
  -      log.error("Could not register with MainDeployer", e);
  -      }
  -   }
  -   
  -   public void stopService()
  -   {
  -      try
  -      {
  -         // Register with the main deployer
  -         server.invoke(
  -            org.jboss.deployment.MainDeployerMBean.OBJECT_NAME,
  -            "removeDeployer",
  -            new Object[] {this},
  -            new String[] {"org.jboss.deployment.DeployerMBean"});
  -      }
  -      catch (Exception e) {
  -      log.error("Could not register with MainDeployer", e);
  -      }
      }
   }
  
  
  
  1.10      +3 -3      jbosscx/src/main/org/jboss/resource/RARDeployerMBean.java
  
  Index: RARDeployerMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployerMBean.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RARDeployerMBean.java     15 Feb 2002 06:18:28 -0000      1.9
  +++ RARDeployerMBean.java     3 Apr 2002 08:23:26 -0000       1.10
  @@ -11,16 +11,16 @@
   
   import org.jboss.util.jmx.ObjectNameFactory;
   
  -import org.jboss.deployment.DeployerMBean;
  +import org.jboss.deployment.SubDeployerMBean;
   
   /**
    * Exposed management interface for the <code>RARDeployer</code> service.
    *
    * @author     Toby Allsopp ([EMAIL PROTECTED])
  - * @version    $Revision: 1.9 $
  + * @version    $Revision: 1.10 $
    */
   public interface RARDeployerMBean
  -       extends DeployerMBean
  +   extends SubDeployerMBean
   {
      ObjectName OBJECT_NAME = 
ObjectNameFactory.create("jboss.jca:service=RARDeployer");
   }
  
  
  

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

Reply via email to