• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

access data from multiple sessions

 
devika cha
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic