Announcement Announcement Module
Collapse
No announcement yet.
Acegi + EhCache in cluster environment Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Acegi + EhCache in cluster environment

    Can I use Acegi with EhCache in a clustered environment? EhCache doesn't support cluster, so should I implement the UserCache to use a cluster-aware caching (TreeCache or Swarmcache)?

    Thanks

  • #2
    OSCache

    you should use OSCache to support clustering:

    http://www.opensymphony.com/oscache/wiki/Hibernate.html


    I've been using EHCache/Hibernate/Spring, but when we get to the point of needing clustering it's as simply as changing the configuration file(s) -.


    jc

    Comment


    • #3
      Acegi Security doesn't provide any UserCache implementations aside from EH-CACHE. If you write additional providers and corresponding unit tests, please consider contributing it.

      Comment


      • #4
        Is this still the case or has someone contributed a new UserCache that supports clustering? I am considering porting to Acegi, but caching/performance is a huge concern.

        Thanks

        Comment


        • #5
          Nobody has written a caching implementation of Acegi Security interfaces which wraps a cluster-aware provider, but I'm sure it'd be extremely simple to do so. The only reason we haven't is due to the simplicity, and the fact we'd add another dependency JAR to Acegi Security.

          Comment


          • #6
            Ben,

            Thanks for the info. I will take a look into it when I get a chance.

            Comment


            • #7
              JCS is distributed

              JCS has several distribution options:

              http://jakarta.apache.org/jcs/index.html

              Comment


              • #8
                Originally posted by Ben Alex
                Nobody has written a caching implementation of Acegi Security interfaces which wraps a cluster-aware provider, but I'm sure it'd be extremely simple to do so. The only reason we haven't is due to the simplicity, and the fact we'd add another dependency JAR to Acegi Security.
                Ben/Anyone,

                I am new to the caching issue and trying to get my head around it at the moment. I see no reason that this should stop my analysis of Acegi. However, could you point me to the appropriate source or doc regarding the interfaces that need to be wrapped? Also, it seems OSCache and JBossCache (POJOCache) would be the best options, any comments?

                Thanks,
                Julian

                Comment


                • #9
                  OSCache vs EHCache

                  Originally posted by twoencore View Post
                  you should use OSCache to support clustering:

                  http://www.opensymphony.com/oscache/wiki/Hibernate.html


                  I've been using EHCache/Hibernate/Spring, but when we get to the point of needing clustering it's as simply as changing the configuration file(s) -.


                  jc
                  So are you saying that EHCache does support clustering? If so then why do you prefer OSCache?

                  Comment


                  • #10
                    Recently, EhCache supports Distributed Caching.

                    "Ehcache 1.2 introduced a full-featured, fine-grained distributed caching mechanism for clusters."

                    http://ehcache.sourceforge.net/features.html

                    Comment


                    • #11
                      looks like its as recently as april 2006
                      http://today.java.net/pub/n/Ehcache1.2
                      since its so easy to configure im surprised that most people dont make ehcache their first choice for a clusterable hibernate cache
                      Last edited by doubleoevan; Nov 10th, 2007, 01:42 PM.

                      Comment

                      Working...
                      X