Hi there,
i have a class that contains a method which performs a web service call like this ...
public class WSCaller {
public void callWS() {
/* perform the web service call here */
}
}
the web service has session scope,
and i need a special behavior for the WSCaller class ...
/* some other class */
{
WSCaller caller1 = new WSCaller();
WSCaller caller2 = new WSCaller();
}
i need caller1 to have its own session and the same for caller2 and for any other instance
of WSCaller, for example if the web service just increment and returns a counter then i
would like to have this behavior from caller1 and caller2 (note that they're calling the same service):
/* the same "some other class" ;) */
{
caller1.callWS(); // return 1
caller1.callWS(); // return 2
caller1.callWS(); // return 3
caller2.callWS(); // return 1
caller1.callWS(); // return 4
caller2.callWS(); // return 2
...
}
i really appreciate any help you can give me ...
thanx
_____________________
Diego Mungu�a Molina
Artinsoft, Costa Rica
[EMAIL PROTECTED]
