0 Replies Latest reply on Jun 29, 2007 1:58 PM by Andre Parodi

    Entity EJB3 clustering not writing to database

    Andre Parodi Newbie


      I have two jboss instances clustered. I have configure the Entity EJB3's cache to use the jboss cache (treecache) to replicate the entities accross the two servers.

      If I query the cache using a entity manager's em.find(myClass.class, id) method I see the correctly replicated data. If I run a query using em.createQuery(...) then I access the db directly and the data that has been replicated is not in the DB.

      Is there a hibernate setting or a jboss cache setting to force the replicated data to be written to the local db instance?

      Thanks in advance for any help.