File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "Memory associated with an application" Watch "Memory associated with an application" New topic

Memory associated with an application

Deepak Ramachandran Nair

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
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at 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.

[ May 29, 2004: Message edited by: vn us ]
I agree. Here's the link:
subject: Memory associated with an application
jQuery in Action, 3rd edition