English 中文(简体)
Hibernate的L2cache交易
原标题:Transactional L2 cache in Hibernate
  • 时间:2009-08-31 12:51:53
  •  标签:

Q1: What does "transactional" strategy guarantee?

Q2: What is the difference between "transactional" strategy and "read/write" strategy with JTA as transaction manager (specified by property).

Q3: What if I specify "transaction" strategy for some entity in a .hbm.xml file and then will use L2 cache which does not support "transaction" strategy.

最佳回答

For Q1 - Transactional means two things in my understanding. If you have synchronous replication, your transaction will pause until all nodes get the replicated change. if you have asynchronous replication, you can be sure that your other nodes will see the changes in the isolation level chosen (e.g. read committed) and will comply with commits and role backs. It also means that if an error occurred in the database, or another exception thrown (causing a rollback in case of a transactional aspect on the caller) the cache will also perform a rollback to the changes - keeping a synchronization between cache and database. note that this requires a JPA transaction manager.

<>-阅读/标准并非集群安全,并不保证数据在节点之间的一致性。

Q3-从来未受审判,但可能会因冰 Except而失败。

问题回答

暂无回答




相关问题
热门标签