You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/09/26 21:03:33 UTC
DO NOT REPLY [Bug 22125] -
Can't share sessions between different services ??
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22125>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22125
Can't share sessions between different services ??
perman@atg.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Additional Comments From perman@atg.com 2003-09-26 19:03 -------
I have a propsed fix for this. It borrows a little from bug a proposal in bug
20294. Most of it is new though. A client using this patch would look like
this:
CookieContainer cookie = new CookieContainer();
FooService fooService = new FooServiceLocator();
Service axisService = (Service) fooService;
axisService.setMaintainSession(true);
Foo myStub = fooService.getFooPort();
((Stub)myStub).setCookieContainer(cookie);
BarService barService = new BarServiceLocator();
Service axisService = (Service) barService;
axisService.setMaintainSession(true);
Bar myOtherStub = barService.getBarPort();
((Stub)myOtherStub).setCookieContainer(cookie);
// the following two calls will executing within the
// same session
myStub.doSomething();
myOtherStub.doSomethingElse();