aspose file tools*
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
Author

Axis2 Session Management

shivakumar paka
Greenhorn

Joined: Mar 05, 2008
Posts: 15
Hello,

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
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
shivakumar paka
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
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.

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 Session Management
 
Similar Threads
Implementing Access Rights on Axis2 Web Service?
Why to use external session management techniques when session object in JSP is implicit?
Session management
Web service session management useing SOAPSession
JSP