[ajug-members] Caching frameworks for J2EE applications

Joe Sam Shirah joe_sam at bellsouth.net
Tue Jul 22 16:12:15 EDT 2008


    I had a fairly miserable experience in this area last year.  "Miserable"
because it wasted a lot of my time.  As it happened, I was on a fixed bid
project, but we often bill on "should have taken" time anyhow and the time
would have been lost regardless (sometimes it's not so good to be king.)

    My scope was small and I initially chose ehcache almost as a no-brainer.
Then I discovered, of all things, that most of the cache products have
issues with auto-refreshing and control thereof.  That was the biggest
reason I wanted a framework; actual caching I could do easily myself.

    To keep it short, after several days of research over several weeks, I
was headed back to ehcache mostly because of a vaguely described refresh
mechanism.  Then I caught a note by the author that he had basically copied
in Doug Lea's concurrency library.  I think very highly of Doug, but I'm not
thrilled about a code set frozen at a point in time, especially with
refinements becoming a part of the JDK.  For that and several other reasons,
I ended up writing a cacher and classes myself using ConcurrentHashMap and
CopyOnWriteArrayList (JDK version.) in about a day and a half.

    Accuse me of NIH (and it has downsides), but that was my experience.
I'll be very happy if anyone knows of a small, flexible framework with
controllable auto-refresh timings.

    On a different topic, I had mostly the same experience with single
sign-on frameworks.  They handled SSO(n) but not single sign-off!  Is my
thinking just odd?  No, I didn't NIH, but did opt to use the app server's
proprietary SSO.

    Do keep in mind this was a year ago; maybe things have changed.  FWIW,


                                                         Joe Sam

Joe Sam Shirah -        http://www.conceptgo.com
conceptGO       -        Consulting/Development/Outsourcing
Java Filter Forum:       http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International?    http://www.jguru.com/faq/I18N
Que Java400?            http://www.jguru.com/faq/Java400

----- Original Message ----- 
From: <VKulandaivel at inautix.co.in>
To: <ajug-members at ajug.org>
Sent: Tuesday, July 22, 2008 1:32 PM
Subject: Re: [ajug-members] Caching frameworks for J2EE applications


> Would like to cache
>
> 1. Front GUIs (Typically JSPs, SWFs, etc)
> 2. Servlets
> 3. POJOs
> 4. Data from EIS as well as RDBMS
>
> Wish to spend some $$$ if that's really worthy.
>
> Regards
> Vinay
>
>
>
>
>             "Rob Worsnop"
>             <rworsnop at gmail.c
>             om>                                                        To
>                                       ajug-members at ajug.org
>             07/22/2008 01:07                                           cc
>             PM
>                                                                   Subject
>                                       Re: [ajug-members] Caching
>             Please respond to         frameworks for J2EE applications
>             ajug-members at ajug
>                   .org
>
>
>
>
>
>
>
>
> For a clustered environment? If so how many nodes do you want to scale to?
> What will you be caching? Is it session-specific?
> Open source only, or do you have $$$ to spend?
>
> On Tue, Jul 22, 2008 at 12:05 PM,  <VKulandaivel at inautix.co.in> wrote:
>>
>> Folks,
>>
>> Any suggestion or experience to share something about my subject over
> here.
>>
>> Regards
>> Vinay
>>
>>
>> _______________________________________________
>> ajug-members mailing list
>> ajug-members at ajug.org
>> http://www.ajug.org/mailman/listinfo/ajug-members
>>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members
>
>
>
> _______________________________________________
> ajug-members mailing list
> ajug-members at ajug.org
> http://www.ajug.org/mailman/listinfo/ajug-members




More information about the ajug-members mailing list