Oops, accidentally posted this to the XMLParser help thread… reposting here where i meant it to go!
Oh, if you do have custom clients (as opposed to custom adapters), you should use a BrokerConnectionDescriptor object in your BrokerClient constructor to help authenticate. I recommend abstracting out the BrokerConnectionDescriptor object into a method call, so that if you need authentication at a later date you can modify the method instead of scrambling around your code trying to find everywhere you are passing null into the BrokerClient construction factory method.
The vestigial method would look like:
public BrokerConnectionDescriptor newBrokerConnectionDescriptor() {
return null;
}
Then, when you need authentication/encryption, you can fill out the method to return a singleton (vis a vis lazy init), or build one each time it is requested, or whatever you need!
If you are in adapter code (or an Integration Script) and you need to establish extra clients to a broker (actually encountered something similar to this once while writing a webMethods Enterprise Metrics Adapter), you can take the one that the initial adapter uses and propegate it to your clients instead of worrying about how to construct a new one all the time.
greg
#webMethods-Architecture#webMethods-General#webMethods#Integration-Server-and-ESB