Concurrent Communication between JSPs in the same Session

B

Brent

I am trying to communicate information between concurrent requests
running under the same session. This occurs when an AJAX application
launches multiple requests from the same browser. And, I am trying to
broker share session data between the requests. I believe I have
found a way to do this by managing an active list of JSP pageContext's
saved to the session environment. At this point I am not certain
whether I should try to obtain a list of pageContext's from the
session or try to keep track of it in some session variables, but I
think I can work through this.

Any suggestions on other methods to get/maintain a list of concurrent
requests within a session and then allow them to communicate (say by
setting/getting each others variables or declaring/running another's
public function)? Note, I know this could be done via a database, but
for performance and connection caching issues I am avoiding such a
solution. I have read through and prototyped some ideas from Sun's
Thread, Servlet and Runnable documentation and I cannot find any
solutions there.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top