Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: ehcache-spring-annotations

  1. #1
    Join Date
    Dec 2009
    Posts
    5

    Default ehcache-spring-annotations

    as the springmodules projects seems pretty dead, and its cache module doesn't work in spring 3.0, i'm having a look at either write my own aop stuff for caching, or use the ehcache-spring-annotations fork.

    does anyone have experience with using the fork in a production / live environment? i mean is it mature enough?

    thanks

  2. #2
    Join Date
    Dec 2009
    Posts
    5

    Default

    cross linking to a similar question here

  3. #3
    Join Date
    Apr 2006
    Location
    London
    Posts
    82

    Default

    Quote Originally Posted by aVoice View Post
    as the springmodules projects seems pretty dead, and its cache module doesn't work in spring 3.0, i'm having a look at either write my own aop stuff for caching, or use the ehcache-spring-annotations fork.

    does anyone have experience with using the fork in a production / live environment? i mean is it mature enough?

    thanks

    I'm looking to use this, but have no idea how to configure the timeouts for those cachegroups. I can't see any examples on their site.

  4. #4
    Join Date
    Apr 2006
    Location
    London
    Posts
    82

    Default

    To answer my post - you need to define these in your ehcache.xml. check the ehcache.org for details.

    I have this setup for some of my DAOs and it seems to work.

  5. #5

    Default

    If you are trying to use Spring 3.0, there is a new project listed at the end of this thread that uses annotations for caching. I haven't had time to try it out yet, but it might be worth looking into.

    http://forum.springsource.org/showth...t=47953&page=2

  6. #6
    Join Date
    Apr 2006
    Location
    London
    Posts
    82

    Default

    I should have said, I am using ehcache-spring-annotations now and seems to work. My previous posts were in relation to this new project.

  7. #7

    Default

    As one of the authors of ehcache-spring-annotations I'd like to assure you that it is very much production ready. Nick (the other author) and I wrote it out of a need in several high-traffic applications we work on and we haven't had any issues with it.

    While I haven't actually done performance benchmarks on this versus spring-modules-cache I would surmise that it is significantly faster due to improvements in key generation and a significant reduction in the code that is executed by the caching aspect.

  8. #8
    Join Date
    Jan 2010
    Posts
    8

    Default

    Is there a similar project that supports JBoss Cache or if not how difficult is it to adapt ehcache-spring-annotation to work with JBoss?

  9. #9

    Default

    There isn't a similar project that I know of.

    We implemented ehcache-spring-annotations for ehcache specifically so there is no abstract away from the Ehcache classes. It likely could be done but I'm not sure how much work it would be.

  10. #10
    Join Date
    Jan 2010
    Posts
    8

    Default

    I am going to try and modify your framework to make it JBoss-compatible. Although, I have never modified and static-linked an opensource project before. What are the rules with regards to the licensing and copyright/left? am I allowed to change the packaging or inject my code to the project using the same package names?
    The new project (if successful) will be used internally in a proprietary enterprise application. Although I will be more than happy to contribute it back to the mother project to be assessed and possibly added to the framework if deemed good enough and upon permission from my company.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •