Hi ram, thank you for the reply
what prevents that static HashMap from growing indefinitely?
It will be my program's responsibility to delete the object from the HashMap, before the request closes.
I do something like this:
Is this CallbackHandler part of a framework?
CallbackHandler is I believe part of JEE specification. To be specific I believe it is JSR109.
However it looks like IBM extended it and has it's own implementation.
The call back handler is defined in a file "ibm-ebservicesclient-bnd.xmi".
The instance in constructed by the JEE framework, not from my code.
I looked at JSR109 specification document, but wasn't clear if the call back handler is always called by same thread or not.
However since the web service is called synchronously, not asynchronously, to me it doesn't make sense for the application server to invoke the call back handler in a different Thread.
In that case the invoker will be just sitting there waiting for the other Thread to end the process.
FYI here is the code for the call back handler