jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smuts, Aaron" <Aaron.Sm...@travelocity.com>
Subject RE: JCS vs. EHCache
Date Wed, 11 Jul 2007 20:02:20 GMT
1.  You are writing a java program.  It doesn't matter if it is a
service or a web app or a standalone app.  Why wouldn't a singleton work
in a webservice?  I don't understand the question.

But I strongly suggest that you avoid SOAP if possible.  It's simply
hideous.  Just make a simple REST or xml / http service.  If you are
serving images, wouldn't it be nice to be able to request them with a
nice query string and to get back an image rather than a soap

2.  Why are you caching images?  Are you creating them or fetching them
from some far off place?  If not it would be better to setup an image
server that could server the static files.  If so, the go ahead.  Byte
arrays would be easy.  I assume that you'll have lots and will want to
use the disk cache as a swap.

3. No.  They added eh over 4 years ago. See:

4. See 2.  

5.  Yes, no matter what.



> -----Original Message-----
> From: Chris Rocker [mailto:chrisrocker90@yahoo.com]
> Sent: Tuesday, July 10, 2007 4:48 PM
> To: jcs-users@jakarta.apache.org
> Subject: Fw: JCS vs. EHCache
> Hi,
> My company is planning to implement a cache for images. This interface
> this cache will be implemented a Web Service (.war file, SOAP, etc.).
> are using Java 1.4, Apache/Tomcat 5.028 for reasons of backward
> compatability with some binaries (this may change). I've come across
> and it looks good, but I'm not sure if it's a good fit. So, please
> with my newbie-ish questions:
> 1) How does the cache persist between web service calls? I guess it's
> using a static singleton - will this work with a web service?
> 2) Should images, in fact all binary data, be stored as byte arrays?
> 3) Did ehcache replace JCS in hibernate, and if so should I be worried
> about this?
> 4)   Is what we are trying to do appropriate for JCS?
> 5) Is JCS a better choice for our purposes than ehCache?
> Thanks in advance for your helpful advice for this evaluation process.
> Chris
>       Fussy? Opinionated? Impossible to please? Perfect.  Join
> user panel and lay it on us.
> __________Ready for the edge of your seat?
> Check out tonight's top picks on Yahoo! TV.
> http://tv.yahoo.com/

To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message