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

Thread: Acegi + EhCache in cluster environment

  1. #1

    Default 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. #2

    Default 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
    /^\\ Pharaoh /^\\
    http://pharaohofkush.blogspot.com/

    Jeryl Cook

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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.

  4. #4

    Default

    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

  5. #5
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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 Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  6. #6

    Default

    Ben,

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

  7. #7
    Join Date
    Feb 2006
    Posts
    7

    Default JCS is distributed

    JCS has several distribution options:

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

  8. #8

    Default

    Quote 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

  9. #9

    Default OSCache vs EHCache

    Quote 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?
    -Evan Tsao
    http://www.digzibit.com - Share your work on the web!

  10. #10
    Join Date
    Nov 2005
    Location
    inside milk carton
    Posts
    51

    Default

    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

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Acegi running fine. Howto add roles, ...
    By ThomasBecker in forum Security
    Replies: 9
    Last Post: Sep 16th, 2007, 08:16 AM
  3. Replies: 9
    Last Post: Sep 5th, 2006, 06:50 AM
  4. Acegi for LDAP
    By vaibhav.gandhi in forum Security
    Replies: 12
    Last Post: Jul 13th, 2005, 12:33 AM
  5. Replies: 4
    Last Post: Nov 2nd, 2004, 02:11 PM

Posting Permissions

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