Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Share session between web apps  RSS feed

 
chris freeborn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we share session attribute values between different web apps in the same web app server?
Thanks
 
Billybob Marshall
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would venture an educated guess that the answer would be "No".
Why don't you try it out for yourself? Can't be that hard.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though I have yet to venture down that path, it is possible to set up your web apps (contexts) such that they can make cross-context calls to each other. They have to be set up this way (there's an attribute on the context attribute of Tomcat's server.xml that enables this -- not sure how other servers may operate).
Sorry I couldn't give you more specifics. But perhaps this is enough to get you researching down the correct path -- or others that have actually done this could chime in.
Another possibility is to step out of the servlet mechanisms and use RMI or other comm mechanisms.
[ February 09, 2004: Message edited by: Bear Bibeault ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!