File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Axis2 Session Management Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Session Management" Watch "Axis2 Session Management" New topic

Axis2 Session Management

shivakumar paka

Joined: Mar 05, 2008
Posts: 15

How to implement session management in axis2? I couldn't find any example for
axis2 session management.

Can anybody please help me regarding this.....

Thank you
Shiva Kumar
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The generally accepted best practice is to keep WS stateless. (And HTTP sessions shouldn't be used anyway, because that ties the service to HTTP.)

If you want to correlate successive service calls, pass a unique ID of some kind (maybe a hash of some user-specific information) with each request.
shivakumar paka

Joined: Mar 05, 2008
Posts: 15
Thank you Ulf

We are going to develop a project where the presentation part will be taken
care by Flash and the business logic is in webservices.

So we are using axis2,where i need to maintain session management, how can i perform this?

Please give me detail explation?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
You will have to create your own session management - SOAP is intrinsicly stateless. Http sessions are based on Java collections - easy enough to duplicate the idea with standard Java.

Surely you already have some way to uniquely identify each user if this is a commercial application.

I agree. Here's the link:
subject: Axis2 Session Management
It's not a secret anymore!