• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

access data from multiple sessions

 
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
 
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.
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic