-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JCache and CDI #3
Comments
Hi, I haven't tried the javax.cache annotations myself, but I guess this is more the responsibility of the environment you are running on. Maybe have a look at the javax.cache examples from tomcat, jboss etc. But I am not using one of those. When using spring you could take a look at http://blog.springsource.org/2011/02/23/spring-3-1-m1-caching/ but than you might be better of using https://github.com/toelen/spymemcached-springcache as well. When you have it working please let me know what works for you, than I can put this on the wiki. Regards, |
Hi, I think it is the responsibility of the jcache provider. System.setProperty("spymemcachedservers", servers); SpyCachingProvider provider = new SpyCachingProvider(); cacheManager = provider.createCacheManager(provider.getDefaultClassLoader(), "default"); I will do some more investigation and let you know. By the way are you also making an 0.6 jcache implementation or waiting for the final. thanks I know now some more. First create an implementation of javax.cache.annotation.BeanProvider like this and then tell CDI where to find it declaring a resource named javax.cache.annotation.BeanProvider in the classpath at /META-INF/services/. Will try it out |
Hi,
great work, I got it working with Memcached MySQL Cluster but now I want to do something with CDI like @CacheResult.
Do you know if this works and what has to be done.
thanks Edwin
The text was updated successfully, but these errors were encountered: