Andrea,

I just tested it, and for the head of the JBC trunk at least, setting a Option 
with setCacheModeLocal(true) before the putForExternalRead call prevents 
replication for that call.  So, JBC exposes an API to allow the behavior you 
want.

If you want this behavior for Hibernate's use of JBC as a 2nd level cache, then 
you need to post a feature request on the Hibernate project.  This could be 
controlled on a per-SessionFactory basis via a Hibernate configuration 
property.  Configuring it on a per-entity type would be a lot more complex, if 
it's doable at all.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095646#4095646

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095646
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to