Re: webapp design question

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Thelmo,

At 10:23 AM 10/23/2003 +0200, you wrote:
>In my webapp i've to keep a lot of per-session information, with a lot i
>mean quite large ArrayList, at least one object which has socket writing
>and reading capabilities and of course some basic data and user states.
>
>Is the object repository within barracuda (mapped with http session
>scope) the best place where to store this infos !?

I believe that is what it was created for.  It automates the handling of 
issues such as thread safety and object cleanup and doesn't require that 
you have access to an HttpRequest object in order to get access to the 
HttpSession object.  Sounds to me to be an ideal place to store your 
objects.  I would, however, watch how much stuff you put into the session 
repository.  Depending on how many users you have, you could end up running 
out of memory with too many sessions with too much stuff in them.  Note 
that the ObjectRepository allows you access to the global and local scopes 
which allows you store some stuff which might not be required to store per 
user session allowing you to save on system resources.

I'll let Christian add more specifics if need be.

Jake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.