| Author |
access data from multiple sessions
|
devika cha
Greenhorn
Joined: Dec 17, 2003
Posts: 23
|
|
Hi, I am trying to get data displayed from multiple sessions (different users), can anybody tell me how to do it. It is for admin purpose only. thank u
|
 |
alzamabar
Ranch Hand
Joined: Jul 24, 2002
Posts: 379
|
|
Originally posted by devika cha: Hi, I am trying to get data displayed from multiple sessions (different users), can anybody tell me how to do it. It is for admin purpose only. thank u
In case of dynamic data you want to go to the database or, if you don't want or can't, you can store the data as attributes in the ServletContext object. In case of static data, you can set web-app configuration parameter (<context-param> element in the DD). Hint: ServletContext and Session attributes are NOT thread-safe, so better to synchronize on the objects before you use them.
|
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
|
 |
 |
|
|
subject: access data from multiple sessions
|
|
|