Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sharing session across servlets

 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to share sessions across servlets running in two different servlet contexts? If yes, how?
TIA,
- Manish
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not using the regular session mechanism. The route most people take is to persist the data which you need to share in some sort of repository reachable by servlets in both contexts (a database, JNDI repository, JavaSpace, etc.).
 
Manish Hatwalne
Ranch Hand
Posts: 2591
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
I thought so...
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic