• 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

Share session between web apps

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we share session attribute values between different web apps in the same web app server?
Thanks
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic