• 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

communication sessions between two applications

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm deployed application A and application B in TOMCAT server applications, the U1 user enters into the application A,
he authenticates and generates a call to a page of the app B. As I was able to access the session of user U1 en A from B, it could have a single session.

Thank you
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, welcome to the Ranch!

Do you have a question?
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Tim - I think query is - can we use HTTPSession as a medium to communicate between two applications deployed in same Tomcat server ? Reason why he asks this because as per example given by him, he is able to access HTTP Session of Application A in Application B.

@Benitez - we can not share HTTPSession between two applications. Can you please share the code where you call Application B page from Application A ? May be you are using forward request dispatcher which may have resulted in browser to given you impression that Session is shared.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are solutions out there that purport to share sessions between web apps running in the same Tomcat instance: http://stackoverflow.com/questions/9436736/sharing-session-data-between-contexts-in-tomcat
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic