3 Replies Latest reply on Apr 12, 2011 2:13 PM by Miha Valencic

    Usage guidelines in an EJB environment

    Miha Valencic Newbie

      Hi!

       

      Disclaimer: total newbie with regards to Infinispan. Having said that, I'm planning to use Infinispan in a JEE environment; Stateless beans will be using cache to store & lookup objects.

       

      I was searching through documentation and was unable to find how to store CacheManager instances so that they will be shared by all EJBs (in a given JVM) since static variables are discouraged and generally not recommended in a J2EE (JEE) environment?

       

      What are best practices for boostrapping CacheManager (I'd like to initialize it when the server starts).

       

      If it matters, I'm developing on JBoss, but the end product will be running on WebSphere 7.

       

      Thanks,

        Miha.