File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes war files in the same Application server - Session ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "war files in the same Application server - Session ?" Watch "war files in the same Application server - Session ?" New topic
Author

war files in the same Application server - Session ?

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1300
I have 2 war files in the same Application server. Is it possilbe to share the session between them ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Sharing sessions between webapps is a violation of the servlet spec.
Some servers may have extra-spec functionality for doing this.

This page mentions a workaround:
http://wiki.apache.org/jakarta-tomcat/HowTo
[ June 20, 2005: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Agreed with Ben.

If you are asking it is possible or not? then yes it is possible. As Ben said some app servers have this extra feature. I can remember that this can be done in IBM Websphere.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: war files in the same Application server - Session ?
 
Similar Threads
How to share value between mutiple war files?
How to install UploadBean v1.6?
Sharing Session between Two WAR Files
communicate between 2 war files
JSF outcome across contexts