wood burning stoves 2.0*
The moose likes Websphere and the fly likes Memory associated with an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Memory associated with an application" Watch "Memory associated with an application" New topic
Author

Memory associated with an application

Deepak Ramachandran Nair
Greenhorn

Joined: May 24, 2004
Posts: 4
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

Joined: Aug 10, 2001
Posts: 3879
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
vn us
Ranch Hand

Joined: Dec 27, 2002
Posts: 33
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory associated with an application
 
Similar Threads
Use of Cookie
Chapter 6(Session Management) notes (HFSJ) for revision
Do I need to "add" encodeURL for "action" tag in this case ?
Where do Session objects live??? Server or Client??
Session Tracking