Alex,
I've been playing with sessions all day and found
what I really wanted after a bit of muddling around. I realize that with
"scope"="session" that I'd be getting a new instance of my SOAP service and
would therefore be able to store local variables unique to the session, etc.
However, this isn't what I'd been trying to achieve. I was looking for something
more like the HttpSession concept in servlets and was able to achieve this with
the "scope"="application" and by having the Axis client and service call the
MessageContext.setMaintainSession(true). Then the server can use the
MessageContext.getSession() to retrieve the session for the particular client.
So far this is working the way I'd wanted. I hope that this is not relying on an
unexpected behavior in Axis.
Thanks again for your help. Your explanations
(especially about the client enabling sessions) made a big
difference.
Grant
|
Title: Message
- Re: MessageContext.setMaintainSession Grant Echols \(JanusLogix\)
- Re: MessageContext.setMaintainSession Slawomir Lisznianski
- RE: MessageContext.setMaintainSession Jan-Olav Eide
- Re: MessageContext.setMaintainSession Matthias Brunner
- RE: MessageContext.setMaintainSession Jan-Olav Eide
- Re: MessageContext.setMaintainSession Matthias Brunner
- Re: MessageContext.setMaintainSession Ricky Ho
- Re: MessageContext.setMaintainSes... Grant Echols \(JanusLogix\)
- Re: MessageContext.setMaintainSes... Matthias Brunner
- RE: MessageContext.setMaintainSession Volanis, Alexander
- Re: MessageContext.setMaintainSession Grant Echols \(JanusLogix\)
- RE: MessageContext.setMaintainSession Jan-Olav Eide
- Re: MessageContext.setMaintainSession Matthias Brunner
- RE: MessageContext.setMaintainSession Jan-Olav Eide
- Re: MessageContext.setMaintainSession Matthias Brunner
- Re: MessageContext.setMaintainSession Steve Loughran
- Re: MessageContext.setMaintainSession Slawomir Lisznianski