On Jul 9, 9:48 pm, morten hattesen <[email protected]> wrote:
> Sounds to me like you are looking for a non-distributed cache.
>
> I can highly recommend using the very lightweight, easy-to-use API
> offered by Google Guave's MapMaker, 
> seehttp://guava-libraries.googlecode.com/svn/tags/release04/javadoc/com/...
>
> It even offers using soft references for values, thus allowing the GC
> to reclaim entries in low-memory situations.
>

MapMaker with soft/weak keys is not really a proper cache for the
simple reason one cannot rebuild the key as it works on object
identity. Once youve lost the key your entry is lost inside the map.

> Definately worth a look
>
> /Morten
> (currently working onhttps://code.google.com/p/pojo-mbean/)
>
> On Jul 8, 9:53 am, Jahid <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Thanks for reply. I am going to pool user's session. Here session is
> > not web session, but custom session. There can be multiple session
> > open for a specific user, and these sessions will be maintained by the
> > pool and used by the application.
>
> > Thanks
>
> > On Jul 8, 9:49 am, Fabrizio Giudici <[email protected]>
> > wrote:
>
> > > On 07/08/2011 09:29 AM, Jahid wrote:> Hi,
>
> > > > Anyone knows any nice object pooling framework? By "nice" I mean, easy
> > > > to use set of APIs, well maintained, stable, open source and popular.
>
> > > > I know about the "Pool (http://commons.apache.org/pool/)" from Apache.
> > > > Anyone knows anything better beside that?
>
> > > As usual, "better" must be projected to a specific perspective, i.e. the
> > > purpose. What are you going to do with an object pool?
>
> > > --
> > > Fabrizio Giudici - Java Architect, Project Manager
> > > Tidalwave s.a.s. - "We make Java work. Everywhere."
> > > java.net/blog/fabriziogiudici -www.tidalwave.it/people
> > > [email protected]

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to