axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22125] - Can't share sessions between different services ??
Date Fri, 26 Sep 2003 19:03:33 GMT
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();

Mime
View raw message