Performance Zone is brought to you in partnership with:

Manik Surtani is a core R&D engineer at JBoss and project lead on JBoss Cache. He has a background in artificial intelligence and neural networks, a field he left behind when he moved from academic circles to the commercial world. Since then, he's been working with Java-related technologies, first for a startup, focusing on knowledge management and information exchange. He later worked for a large London-based consultancy as a tech lead focused on e-commerce applications on large J2EE and peer-to-peer technology. Manik is a strong proponent of open source development methodologies, ethos, and collaborative processes, and often speaks at Java User Groups around the world. Manik is a DZone MVB and is not an employee of DZone and has posted 39 posts at DZone. You can read more from them at their website. View Full User Profile

Give Java Caching Standard API a go using Infinispan 5.3.0.Alpha1!

04.23.2013
| 3808 views |
  • submit to reddit

This post comes from Galder Zamarreño at the Infinispan blog.

As part of the recent Infinispan 5.3.0.Alpha1, the first Infinispan JCache implementation was released which implements version 0.6 of the JCache specification as defined by JSR-107. It passes 100% the mandatory TCK including optional transactions TCK.

A document on how to use Infinispan JCache implementation has just been released, which explains the basics of using JCache, how it differs with existing APIs provided by the JDK, and how to cluster JCache based cache instances. More information will be added to the document, including quickstarts, as we make further progress in the Infinispan 5.3 series.

Please note that the CDI and annotations part of JCache 0.6 specification is still in flux, and we're not yet able to provide an implementation for it, but we expect the issues stopping the implementation to be resolved in the near future.

Finally, as it's expected from first releases, some bugs might be present, so if you encounter any misbehaviour, check the list of issues associated with the JCache component to see if the issue has already been resolved, or if not, please report it so that it can be fixed ASAP :).

Cheers,
Galder



Published at DZone with permission of Manik Surtani, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Xavier Dury replied on Wed, 2013/04/24 - 1:58am

Hi,

Concerning JCache, I was wondering if you'll be able to let the application server manage a CacheManager and expose it through JNDI for your application to use (like it's already done for DataSources, Queues...)

<resource-ref>
    <res-ref-name>cache/Manager</res-ref-name>
    <res-type>javax.cache.CacheManager</res-type>
    <res-auth>Container</res-auth>
</resource-ref>

After all, a cache manager is an external resource as it will probably have to persist data on a disk at some point.

Is it something that should belong to the spec or does each AS have the choice to implement it or not?

Regards,

Xavier

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.