• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 43081
77
  • 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
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic