Agreed. Could we provide a jsr107 module in infinispan that
implements the proposed api?
On 4 May 2011, at 02:53, Galder Zamarre?o wrote:
> Hey Ales,
>
> I had a quick glance and these are my comments so far:
>
> Do you know where's the javadoc or source for the javax.cache classes?
Nope.
I just pulled the first javax.cache maven artifact I could find.
And I googled for some poor javadoc.
> Also, I'm not sure we can really implement this on top of
Infinispan. Personally I think it's better if it's implemented within Infinispan.
For example:
>
>
https://github.com/alesj/lhotse/blob/master/javax-cache/src/main/java/org...
>
> You're basically accessing the data container directly there and so you bypass
any interceptors. So for example, in a distributed cache that call won't lookup the
entry if not present locally. Same thing if the entry is instead located in a cache store.
Is there some other proper API I could use to implement this?
But I have nothing against moving this directly to Infinispan. :-)
> Have you also tried to run a test with the listener in
https://github.com/alesj/lhotse/blob/master/javax-cache/src/main/java/org...
? The method parameters for onPut, onLoad and onRemove appear to be wrong.
Ah, copy/paste error.
Let me actually create some tests.
http://weblogs.java.net/blog/kohsuke/archive/2009/03/my_project_of_t.html
-Ales
>> Dunno if this was already implemented somewhere else,
>> but here is my initial javax.cache impl based on Infinispan:
>> *
https://github.com/alesj/lhotse/tree/master/javax-cache/src/main/java/org...