axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/client Service.java
Date Tue, 19 Nov 2002 22:47:01 GMT
dims        2002/11/19 14:47:01

  Modified:    java/src/org/apache/axis/client Service.java
  Log:
  Fix for Bug 14601 - Service constructor searches for EngineConfiguration twice
  
  Revision  Changes    Path
  1.82      +12 -3     xml-axis/java/src/org/apache/axis/client/Service.java
  
  Index: Service.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Service.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- Service.java	28 Oct 2002 15:22:36 -0000	1.81
  +++ Service.java	19 Nov 2002 22:47:01 -0000	1.82
  @@ -105,8 +105,7 @@
   
   public class Service implements javax.xml.rpc.Service, Serializable, Referenceable {
       private transient AxisEngine          engine = null;
  -    private transient EngineConfiguration config =
  -        EngineConfigurationFactoryFinder.newFactory().getClientEngineConfig();
  +    private transient EngineConfiguration config = null;
   
       private QName               serviceName     = null ;
       private URL                 wsdlLocation    = null ;
  @@ -138,7 +137,7 @@
       
       protected AxisClient getAxisClient()
       {
  -        return new AxisClient(config);
  +        return new AxisClient(getEngineConfiguration());
       }
   
       /**
  @@ -724,6 +723,16 @@
           this.config = config;
       }
   
  +    /**
  +     * Constructs a EngineConfig if one is not available.
  +     */ 
  +    protected EngineConfiguration getEngineConfiguration() {
  +        if (this.config == null) {
  +            this.config = EngineConfigurationFactoryFinder.newFactory().getClientEngineConfig();

  +        }
  +        return config;
  +    }
  +    
       /**
        * Determine whether we'd like to track sessions or not.
        * This information is passed to all Call objects created
  
  
  

Mime
View raw message