avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager MX4JSystemManager.java
Date Sat, 01 Mar 2003 08:51:46 GMT
donaldp     2003/03/01 00:51:46

  Modified:    src/java/org/apache/avalon/phoenix/components/manager
                        MX4JSystemManager.java
  Log:
  Make it possible to disable the http adaptor
  
  Revision  Changes    Path
  1.26      +10 -3     avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java
  
  Index: MX4JSystemManager.java
  ===================================================================
  RCS file: /home/cvs/avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- MX4JSystemManager.java	1 Mar 2003 08:39:15 -0000	1.25
  +++ MX4JSystemManager.java	1 Mar 2003 08:51:45 -0000	1.26
  @@ -57,6 +57,7 @@
       private String m_namingFactory;
       private String m_password;
       private String m_username;
  +    private boolean m_http;
   
       public void contextualize( final Context context )
           throws ContextException
  @@ -81,6 +82,7 @@
           getLogger().debug( "MX4J HTTP listener port: " + m_port );
   
           m_rmi = configuration.getChild( "enable-rmi-adaptor" ).getValueAsBoolean( false
);
  +        m_http = configuration.getChild( "enable-http-adaptor" ).getValueAsBoolean( true
);
   
           m_namingFactory =
               configuration.getChild( "rmi-naming-factory" ).getValue( DEFAULT_NAMING_FACTORY
);
  @@ -108,7 +110,10 @@
   
           final MBeanServer mBeanServer = getMBeanServer();
   
  -        startHttpAdaptor( mBeanServer );
  +        if( m_http )
  +        {
  +            startHttpAdaptor( mBeanServer );
  +        }
   
           if( m_rmi )
           {
  @@ -120,8 +125,10 @@
       {
           final MBeanServer mBeanServer = getMBeanServer();
   
  -        stopHttpAdaptor( mBeanServer );
  -
  +        if( m_http )
  +        {
  +            stopHttpAdaptor( mBeanServer );
  +        }
           if( m_rmi )
           {
               stopRMIAdaptor( mBeanServer );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message