You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by wadi wadi <wa...@gmail.com> on 2011/03/04 11:27:41 UTC

Session management in AXIS2 - questions

Hi all,

I developed a axis2 webservice that returns an incremental value i+10 at
each request, for example 10, 20, 30, ...etc for each successive request
I need to provide a "client-based" session management to the webservice. To
explain here is the scenario:

client A requests the webservice a session will be created and initial value
is returned 10
client B requests the same webservice and nother corresponding session will
be created, value returned 10
client A requests the ws, value returned 20
client A requests the ws, value returned 30
client A requests the ws, value returned 40
client B requests the ws, value returned 20


Which kind of session scope to use (soap, transport, application) and why?
I tried the transport session but it doesn't differentiate between the two
different clients even if the two clients are interacting from different
machines.

Any idea?

Thanks for your help.

Re: Session management in AXIS2 - questions

Posted by Deepal jayasinghe <de...@gmail.com>.
You can use soap session or transport session. You cannot use
application scope, because for application session you only have one
instance of service implementation class and service context. But for
other two, for each new session it creates a service impl class and
service context.

Deepal
> Hi all,
>
> I developed a axis2 webservice that returns an incremental value i+10
> at each request, for example 10, 20, 30, ...etc for each successive
> request
> I need to provide a "client-based" session management to the
> webservice. To explain here is the scenario:
>
> client A requests the webservice a session will be created and initial
> value is returned 10
> client B requests the same webservice and nother corresponding session
> will be created, value returned 10
> client A requests the ws, value returned 20
> client A requests the ws, value returned 30
> client A requests the ws, value returned 40
> client B requests the ws, value returned 20
>
>
> Which kind of session scope to use (soap, transport, application) and why?
> I tried the transport session but it doesn't differentiate between the
> two different clients even if the two clients are interacting from
> different machines.
>
> Any idea?
>
> Thanks for your help.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org