Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Axis2 Session Management

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic