A package startup service can be used to initialize the Java static data structure declared in the Shared Code portion of the service.
Possibly a Java Hashtable that is keyed using the ErrorCode and the value is the ErrorMessage? This depends on how you are going to access the data. See WmPublic pub.string:lookupDictionary and pub.string:lookupTable for possible accessor services.
You can’t automagically insert something into the pipeline for all services unless you write a ContentHandler (there is an example of this in WmSamples).
But you can create an “init” service that is called by your process’ “entry point services” that does interesting things like prime the pipeline with such a data structure, log the input pipeline or restore a logged pipeline for debugging purposes, put a process start timer into the pipeline for tuning purposes, etc.
#webMethods-General#webMethods#Integration-Server-and-ESB