Hello.
We have coded a java service that uses this static variable (in the “shared” section):
public static final ThreadLocal thSession = new ThreadLocal();
This variable contains a HashMap in which we may add, delete, retrieve objects, etc.
If we launch a service which uses this methods, it works perfectly, but if we launch this service in step by step mode, sometimes the flow behaves as if the thSession variable wasn’t initialized, therefore we lose elements we have added to the object associated with the ThreadLocal object.
Are we supposed to lose static variable in a step by step execution? Is there a way to work around this?
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services