IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Request a service which can modify the specified property of muti services in a specified package

  • 1.  Request a service which can modify the specified property of muti services in a specified package

    Posted Tue October 18, 2016 05:31 AM

    Request a service which can help to modify the property “pipeline debug” of many services in a specified package to “None”. It is to reduce manual operation.


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Request a service which can modify the specified property of muti services in a specified package

    Posted Tue October 18, 2016 06:56 AM

    Use this:

    watt.server.pipeline.processor
    Specifies whether to globally enable or disable the Pipeline Debug feature. When set to
    true, Integration Server checks the Pipeline Debug values for the service at run time.
    You can view and set the Pipeline Debug values in the Properties view in Designer.
    When set to false, Integration Server ignores the Pipeline Debug options set for the
    service in Designer. The default is true.

    Enable this property in development environments where testing and debugging
    is performed. In a production environment, however, disabling this property is
    recommended.

    Important: You must restart Integration Server for the new value to take effect.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Request a service which can modify the specified property of muti services in a specified package

    Posted Wed October 19, 2016 07:22 AM

    Hi Mahesh,

    Aaron is looking out for disabling/enabling ‘debug’ property for specific packages. I think your suggestion will do it for all the packages residing on the IS.


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Request a service which can modify the specified property of muti services in a specified package

    Posted Wed October 19, 2016 12:24 PM

    Hi,

    I just placed a feature request about this on Brainstorm: “04146 - Audit settings should be managed as configuration settings”.

    Without this change, it is still possible to change audit setting in a runtime environment with a service, but you should create you own Java utilities.

    The way I have done it, is to use the Java API com.wm.lang.ns.NSService and com.wm.lang.ns.AuditSettings (see documentation):

    
    ...
    import com.wm.data.*;
    import com.wm.util.Values;
    import com.wm.app.b2b.server.Service;
    import com.wm.app.b2b.server.ServiceException;
    import java.util.HashMap;
    import java.util.Map;
    import com.wm.lang.ns.AuditSettings;
    import com.wm.lang.ns.NSName;
    import com.wm.lang.ns.NSService;
    import com.wm.app.b2b.server.ns.Namespace;
    ...
    
    NSService     serviceNS = getServiceNS("yourServiceName");
    AuditSettings settings  = getAuditSettings(serviceNS);
    ...
    serviceNS.setAuditSettings(settings);
    ...
    /**
    Helper maps
    */
    private static final MapDictionary MAP_AUDIT_OPTIONS = new MapDictionary();
    static {
    MAP_AUDIT_OPTIONS.put(NSService.AUDIT_DISABLED,
    "Never");
    MAP_AUDIT_OPTIONS.put(NSService.AUDIT_ENABLE, 
    "Always");
    MAP_AUDIT_OPTIONS.put(NSService.AUDIT_ENABLE_TOPLEVEL, 
    "Top-Level Service Only");
    }
    
    /**
    * 
    */
    private static final MapDictionary MAP_AUDIT_SAVE_OPTIONS = new MapDictionary();
    static {
    MAP_AUDIT_SAVE_OPTIONS.put(AuditSettings.LOG_NONE,
    "Never");
    MAP_AUDIT_SAVE_OPTIONS.put(AuditSettings.LOG_WITHOUTPIPELINE, 
    "On Error");
    MAP_AUDIT_SAVE_OPTIONS.put(AuditSettings.LOG_WITHPIPELINE, 
    "Always");
    }
    ...

    Good luck,


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Request a service which can modify the specified property of muti services in a specified package

    Posted Thu October 20, 2016 05:37 PM

    Thanks, Yes this setting will disable the pipeline debug to none globally on the IS and its almost what he needs (as he might forgot the service name where he has enabled the debug to save/restore)

    If he wants to modify the pipeline debug manually then he might have to go to the service and change it or right the java service or look into the services available in WmRoot.


    #webMethods
    #Integration-Server-and-ESB