[jboss-user] [JBossCache] - Re: JBossCache and readonly transactions

bstansberry@jboss.com do-not-reply at jboss.com
Tue Oct 16 10:23:21 EDT 2007


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



More information about the jboss-user mailing list