[jboss-user] [JBoss Cache] - JPA Entity(Hibernate) is not updated with REPL_SYNC cache mode

Miklos Molnar do-not-reply at jboss.com
Fri Oct 26 04:56:23 EDT 2012


Miklos Molnar [https://community.jboss.org/people/molnarmi] created the discussion

"JPA Entity(Hibernate) is not updated with REPL_SYNC cache mode"

To view the discussion, visit: https://community.jboss.org/message/772526#772526

--------------------------------------------------------------
Dear JBoss users,

 I am using jboss AS 5.0 and I have the following issue :

I am working on POF with having stateless session bean in cluster (round robin) in front of the hibernate-jpa. The second level cache is turned on.
I have tried all cache configuration (optimistic-shared, pessimistic-shared, optimistic-entity, etc...), but I do experience in all cases that the Entity update does not get synced/invalidated on the other node. When a new item is added to the cache it is always replicated well, but the entity update does not. So this means that on only one node the second level cache is updated on the other node the old data remains. So when after the entity update I make the call to the session beans on the different nodes they return different data for the same entity. On the node which received the entity update call everything is fine, however the other node does not receive any notification about the update. I turned the org.hibernate.cache log to INFO and I see "externalPutRead" command notification when a new item is added to the cache on the other node, however I see nothing when the entity is updated by the other node. My JPA Entity's cache configuration is TRANSACTIONAL and the JPA EntityManager access is done in REQUIRED transaction in the session bean. Do I miss anything? 

Thanks for any comment. 

regards, Miklos
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/772526#772526]

Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121026/46cf2d80/attachment.html 


More information about the jboss-user mailing list