thorr09
04-02-2010, 12:27 PM
Hi!
I am trying to use resin's distributed caching. I found this link http://blog.caucho.com/?p=132 which presents a sample code to exactly what I would like to implement. The problem is that I can not reuse that code exactly as is there, because for example I cannot find anywhere the package javax.webbeans.Current. So I can not use the annotation @Current. Anyway, I tried to use another solution in this sense: the @Inject annotation which is present hin this package: javax.inject.Inject. I created a web application, put in WEB-INF the resin-web.xml with the data showed on the site and created a servlet which should put a value into the cache and then read it from there. Everything was successful to this point. Now I tried to delete all the data which I have put in the cache using _cache.clear() command. Although _cache.containsKey("my-data") returns 0 the cache.get("my-data") keeps returning my initial data. I have even deleted everything from my servlet letting only the clear and get command there and it still returns data. It seems once put in the cache it can not be deleted from there? Please help me out with this issue...
Thanks,
I am trying to use resin's distributed caching. I found this link http://blog.caucho.com/?p=132 which presents a sample code to exactly what I would like to implement. The problem is that I can not reuse that code exactly as is there, because for example I cannot find anywhere the package javax.webbeans.Current. So I can not use the annotation @Current. Anyway, I tried to use another solution in this sense: the @Inject annotation which is present hin this package: javax.inject.Inject. I created a web application, put in WEB-INF the resin-web.xml with the data showed on the site and created a servlet which should put a value into the cache and then read it from there. Everything was successful to this point. Now I tried to delete all the data which I have put in the cache using _cache.clear() command. Although _cache.containsKey("my-data") returns 0 the cache.get("my-data") keeps returning my initial data. I have even deleted everything from my servlet letting only the clear and get command there and it still returns data. It seems once put in the cache it can not be deleted from there? Please help me out with this issue...
Thanks,