Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] Caching questions

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] Caching questions

Chronological Thread 
  • From: Chris Hyzer <>
  • To: "" <>
  • Cc: Grouper Dev <>
  • Subject: RE: [grouper-dev] Caching questions
  • Date: Tue, 4 Aug 2009 08:37:47 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

> As far as I understand, there are several EhCache controllers for each
> session. For instance, in the method
> AccessResolverFactory.getInstance(...), instances of
> WheelAccessResolver
> and CachingAccessResolver are created, both with their controller (and
> I
> suppose with a file system access to the configuration file). Do you
> think it would be possible to use a unique instance of controller and
> the GrouperSessions' ids as part of the keys ?

Yes, that is possible, we just need to clear out the session specific stuff
when the session ends. I added that idea to the jira issue to explore:

> In fact, initially my problem concerned the version 1.2 of Grouper that
> we are still using here. We use a custom web service to build our
> initial hierarchy of groups, and this problem caused a memory leak and
> after a while a crash. I made a temporary fix by making the cache
> manager static in EhcacheController. It seems to work but as it is in
> contradiction with the design of Grouper, I wondered if there is a risk
> that I introduced a bug...

If you upgraded to 1.4.2 then that bug is fixed, the cached were not being
cleared on session end...


Archive powered by MHonArc 2.6.16.

Top of Page