dcsimg
servlets/jsp
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jyoti_bongarala
Posted On:   Wednesday, November 6, 2002 07:21 AM


Can I get session information of another web application from my web application. Both web applications are running in the same instance of the app server but in different contexts. Please give an example if you can...


thanks

Re: servlets/jsp

Posted By:   Anonymous  
Posted On:   Thursday, November 7, 2002 12:55 AM

BTW, this question would be much better locate in the servlet forum.

This forum is actually dedicated to development processes (like RUP, XP etc.).

Re: servlets/jsp

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, November 6, 2002 07:53 AM

I don't think so. I think different contexts don't share anything. Even if the two web apps were both in the same context, their sessions are still not shared between them.



But if they were both in the same context, at least you could have the first app explicitly add some info about itself, to an attribute of the servlet context (you'd have to maintain some kind of "session info cache", adding info for new or updated sessions, and removing info for invalid sessions somehow), so the second app could read it from there.



I'd thought about doing this (but had no time, so it's put off for now), experimenting with developing some kind of session info cache in the servlet context, so that a "monitoring" app could provide status reports for admin use, about the current state of the actual customer app.

About | Sitemap | Contact