User: schaefera
  Date: 01/10/19 21:24:23

  Modified:    src/main/org/jboss/jmx/connector/ejb EJBConnector.java
  Log:
  First Iteration of the introduction of a Farm in JBoss. This implementation
  is the simplest way by creating a static Farm and only pushing the services
  to be deployed therefore when a deployment fails it is not performed.
  
  Revision  Changes    Path
  1.8       +18 -2     jboss/src/main/org/jboss/jmx/connector/ejb/EJBConnector.java
  
  Index: EJBConnector.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/jmx/connector/ejb/EJBConnector.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- EJBConnector.java 2001/10/11 01:41:59     1.7
  +++ EJBConnector.java 2001/10/20 04:24:23     1.8
  @@ -72,7 +72,7 @@
   * and the EJB-Adaptor (meaning the EJB-Container).
   *
   * @author Andreas Schaefer ([EMAIL PROTECTED])
  -* @version $Revision: 1.7 $
  +* @version $Revision: 1.8 $
   **/
   public class EJBConnector
      implements RemoteMBeanServer, EJBConnectorMBean
  @@ -88,7 +88,6 @@
   
      private Adaptor mAdaptor;
   
  -   private Hashtable         mHandbackPool = new Hashtable();
      private Vector            mListeners = new Vector();
      private String            mJNDIServer;
      private String            mJNDIName;
  @@ -99,6 +98,23 @@
      // Constructor
      // -------------------------------------------------------------------------
       
  +   /**
  +   * AS For evaluation purposes
  +   * Creates a Connector based on an already found Adaptor
  +   *
  +   * @param pAdaptor RMI-Adaptor used to connect to the remote JMX Agent
  +   **/
  +   public EJBConnector(
  +      AdaptorHome pAdaptorHome
  +   ) {
  +      try {
  +         mAdaptor = pAdaptorHome.create();
  +      }
  +      catch( Exception e ) {
  +         throw new IllegalArgumentException( "Adaptor could not be created: " + 
e.getMessage() );
  +      }
  +   }
  +
      /**
      * Creates an Client Connector using the EJB-Adaptor to
      * access the remote JMX Server.
  
  
  

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

Reply via email to