shibboleth-dev - Re: ecache ?
Subject: Shibboleth Developers
List archive
- From: Chad La Joie <>
- To:
- Subject: Re: ecache ?
- Date: Mon, 23 Jul 2007 22:35:58 -0400
- Organization: OIS - Middleware
Hey Leif,
I haven't personally used ehcache but am aware of it. For 2.0 I'm personally going to use Terracotta for replication/clustering because it doesn't incur the requirement that the object be Serializable (which some of the classes we have to use are not).
That said you can certainly use Spring to configure a metadata provider that uses ehcache if you want. OpenSAML itself doesn't use Spring, but if you look at the Shib 2.0 code (in shib-common check out all the stuff under *.config.metadata.*) you can see that I'm using Spring create metadata providers (via a Spring 2 custom schema).
So, I think you with a reasonable approach you could create a metadata provider that took an ehcache CacheManager. People deploying in an environment with Spring could then do what you suggest and others could use whatever other mechanism they had available.
Leif Johansson wrote:
I'm starting to look at porting the DNSMetadata (DDDS for
SAML metadata) I wrote and sent round to a few people to
the 2.0 codebase. I find that I might want to use ehcache as
a way to do caching of various things, notably metadata.
I can't find any signs of ehcache being used today or am I not
looking carefully enough? If ehcache is not used today are
there any thoughts about how to best integrate it? I guess
I would need to use it from opensaml which means it can't
be configured as a spring bean (eg as a ehcache service)
but beeing new to the code I'm not sure.
Cheers Leif
--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware 202.687.0124
- ecache ?, Leif Johansson, 07/23/2007
- Re: ecache ?, Chad La Joie, 07/23/2007
- Re: ecache ?, Leif Johansson, 07/26/2007
- Re: ecache ?, Chad La Joie, 07/23/2007
Archive powered by MHonArc 2.6.16.