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

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.

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.

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.

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,

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.