This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 42959
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: 13025
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
jQuery in Action, 3rd edition