This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Share session between web apps

 
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
Pie
Posts: 64827
86
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic