0 Replies Latest reply on Jul 19, 2006 8:46 AM by Daniel Cardin

    Cache question for EJB3 entities

    Daniel Cardin Newbie

      Hello!

      First of all, sorry for the cross posting to JBossCache. I think this is the better forum for my question.

      Thanks!

      -- original post --
      I am completely new to caching with JBossCache, so please bear with me.

      I have setup my persistence.xml file to use the jboss cache and apparently it works just fine for @Cache collections. On the other hand, I have used the @Cache annotation on entities but I can't seem to get them into the cache.

      I was under the impression that loading it from the manager using find would actually load the referred entity in the cache or load it from there.

      Is this assumption correct ?
      Also, is that the best way (manager.find(...)) to get mostly static data in the cache ?

      Thanks,

      Daniel