Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I bind Cache or CacheManager to JNDI?

bind cache cachemanager JNDI
0
Posted

Can I bind Cache or CacheManager to JNDI?

0

Cache or CacheManager can be bound to JNDI but only to the java: namespace because they are not designed to be exported outside the Java Virtual Machine. In other words, you shouldn’t expect that you’ll be able to access them remotely by binding them to JNDI and downloading a remote proxy to them because neither Cache nor CacheManager are Serializable. To find an example on how to bind Cache or CacheManager to the java: namespace, simply check this unit test case.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.