users@shoal.java.net

Shoal distributed cache

From: Michael Ammer <michael.ammer_at_qrodo.com>
Date: Tue, 24 Nov 2009 15:54:49 +0100

Hi

 

I am using shoal in a java application server as a substitute for oracle
coherence for a number of reasons. I first started using shoal about a year
ago as a distributed cache.

 

I saw today that there was a new version available as of sep 17, and I just
took a quick glance at the source, but I have a few questions.

 

I use shoal in a different manner than most I guess, so I have made some
major modifications to the source in the version I'm using. However, I would
of course much rather be using the official release since I don't have time
to maintain the shoal code myself.

 

My first question is concerning
com.sun.enterprise.ee.cms.impl.jxta.DistributedStateCacheImpl

All the methods using cache.get() also iterate over the entire keyset() of
the concurrent hashtable. I have corrected this in my version since my cache
grows to anywhere from 1 to 100 megabyte. I read somewhere that this is just
an example class showing developers how to implement their own cache, but I
can't imagine this cache being anywhere near the performance of say jboss.

 

This is just one of the many things I had to change to be able to use this
product in a production environment.

 

I am a big fan of JXTA and love using it in production, so I would like to
see the same speed and stability in this product aswell.

 

/Michael