This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

communication sessions between two applications  RSS feed

 
Benitez Fajardo Manuel
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Tim Cooke
Marshal
Posts: 3632
184
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, welcome to the Ranch!

Do you have a question?
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!