[EMAIL PROTECTED] wrote:

Hi,

Â

We are developing a J2EE application where we are using "WSIF Extensions for J2C" to communicate to Mainframes Cobol programs. Also we have multiple threads communicating to the back-end COBOL programs simultaneously through WSIF. Since initialization of âWSIFServiceâ from the WSDL file is a performance intensive process, we initialize âWSIFServiceâ only once and share the reference of âWSIFServiceâ to all the threads. Can some one please advice me whether it is proper to share the same âWSIFServiceâ reference across threads or do I need to create a separate instance of âWSIFServiceâ for each thread?

i think âWSIFServiceâ is supposed to be mult-thread safe only WSIFPort (it is really like a dynamic stub) should not be shared however that is theory and in practice ...

I am asking this question because, when my application is subject to load by spawning multiple threads, I get some inconsistent errors. Hence I would like to validate whether these errors are by any chance related to the way in which I am using WSIFService across threads.

what errors are those?

thanks,

alek

Reply via email to