File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Passing the session object around.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing the session object around.." Watch "Passing the session object around.." New topic

Passing the session object around..

sandy gupta
Ranch Hand

Joined: Jan 30, 2001
Posts: 228
I have a WEB APP( a .war) that calls a servlet( an independent servlet ) to handle the sessions and the servlet furthur calls another .war; The problem is that the session object that the servlet creates is not accessible to the 2nd war. Is there any way i can get the same session object in the 2nd web app.
Thanks in advance
p.s: i am using wl app server

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Sessions are not shared between WARs. Surely if you have all this code which needs to cooperate, it should be in the same web application. Why do you have an indpendent servlet at all?

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Passing the session object around..
It's not a secret anymore!