[jboss-user] [JBoss Cache: Core Edition] - Re: Config Question

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Jul 10 08:09:10 EDT 2008


The TM should only be used if either:

1.  You have a need for JTA transactions in your application and you need the cache to participate in these transactions.
2.  You are using OPTIMISTIC locking.

If either of the above are true, you should use a TM.

There is a third argument to use a TM, and this is to batch up modifications.  E.g., multiple calls to cache.put() will result in multiple replication events but if you wrap these in a transaction, then replication occurs when the transaction commits, as a single message, which could be more efficient.

Isolation level applies to in-memory locking as well so it is relevant even if you are not using a TM.


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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163579



More information about the jboss-user mailing list