igors       02/04/08 15:37:56

  Modified:    java/src/org/apache/axis/deployment/wsdd WSDDService.java
  Log:
  Separated out validateDescriptors method on WSDDService to enable
  dynamic deployment. This became necessary with recent addition of ServiceDescr.
  It is now safely possible to
  WSDDServive servive = new WSDDService();
  service.set...
  service.validateDescriptors();
  deployment.deployService(service);
  Note: without this change I always had to restart server to validate service
  descriptor with necessary information or, alternatively, duplicate
  whole piece of code in my server app.
  
  Revision  Changes    Path
  1.54      +12 -0     
xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java
  
  Index: WSDDService.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/deployment/wsdd/WSDDService.java,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- WSDDService.java  5 Apr 2002 21:24:32 -0000       1.53
  +++ WSDDService.java  8 Apr 2002 22:37:56 -0000       1.54
  @@ -178,6 +178,18 @@
           if (typeStr != null && !typeStr.equals(""))
               providerQName = XMLUtils.getQNameFromString(typeStr, e);
   
  +        // call to validate standard descriptors for this service
  +        validateDescriptors();
  +    }
  +    
  +    /**
  +     * This method should b used for dynamic deployment using new WSDDService()
  +     * etc. It validates some standard parameters for some standard providers
  +     * (if any). This is part of Axis. Do this before deployment.desployService().
  +     *
  +     **/
  +    public void validateDescriptors()
  +    {
           String className = this.getParameter("className");
           if (className != null) {
               try {
  
  
  


Reply via email to