Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory associated with an application

 
Deepak Ramachandran Nair
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I want to create a List and associate with the applications memory so that it can be accessed by all the instances of the application . For example i want to maintain sessions from the server side. So when each an every new session is created i want to add that session to the list and associate some parameters with it. So that every user knows what the other user is working on. Is this possible with WebSphere App Server? If not is there any method of doing the same thing. This is actually something like a server side cookie instead of client side cookie.

And is there any way server will be able to figure out which sessions are active and which are not?

Any help will be highly appreciated.

Thanks and Regards
Deepak
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet spec expressly forbids sharing sessions between users as a security risk. However, it sounds like what you want to do could be better accomplished by using a shared database that everyone works from.

Kyle
 
vn us
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may look at the servlet context to store and retrive this data with forming unique key. It will work only if you have a single app server.
Though as Kyle said above it could lead to a possible scurity breach.


Thanks
[ May 29, 2004: Message edited by: vn us ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic