1

I have an application in Tapestry 5.3.4 that's using the tapestry-security 0.4.6 plugin along with shiro 1.2.0 for authentication, and it works well. However, I would like to use EHCache to cache session data, and eventually to cluster a couple of instances on top of the cache. This is all possible with shiro, however it requires configuring via the shiro.ini, which is no supported in Tapestry. Is there a way to configure shiro in this manner from within the app, or to force loading the ini file?

ascandroli
  • 3,309
  • 1
  • 14
  • 15
Martin J.
  • 33
  • 6

1 Answers1

1

Getting hold of the SecurityManager and calling securityManager.setCacheManager(new EhCacheManager()) should do the trick.

Uli
  • 574
  • 3
  • 12