-
1. Re: DefaultCacheManager created more than once?
matlach Apr 4, 2012 7:30 AM (in response to kovica1)Hello Gregor,
I think you're simply missing the @ApplicationScoped annotation on your createDefaultCacheManager() method.
I also think the @Default is not necessary.
See documentation, under "Override the default embedded cache manager and configuration" section,
https://docs.jboss.org/author/display/ISPN/CDI+Support
Hope this works,
-
2. Re: DefaultCacheManager created more than once?
kovica1 Apr 4, 2012 7:46 AM (in response to matlach)HI!
Thanks for the answer. The docs you refer to is for the Infinispan 5.2. I'm using 5.0.1. so the correct docs would be https://docs.jboss.org/author/display/ISPN50/CDI+Support#CDISupport-Overridethedefaultcacheconfiguration%2Fmanager
But I see that I'm not even following that. I'll correct and see what happens.
I'll keep posted here.
Best regards,
Kovi
-
3. Re: DefaultCacheManager created more than once?
kovica1 Apr 20, 2012 8:16 AM (in response to matlach)Adding @Produces @Default @ApplicationScoped annotations seems to solve the problem.