[
http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-49?page...
]
Emmanuel Bernard commented on HSHARDS-49:
-----------------------------------------
The hibernate.transaction.factory_class
can give a clue. If it's JDBCTransactionFactory that's not 2PC
If it's CMTTransactionFactory, JoinableCMTTransactionFactory, JTATransactionFactory,
the underlying resources are JTA, I imagine the Appserver/JTA coordinater will yell if
more than one resource is not XA (am I correct?)
So we could try and guess based on that.
The other strategy is to ask the user to tell us through a shard property
flush all sub sessions before commit when 2PC is not used
---------------------------------------------------------
Key: HSHARDS-49
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-49
Project: Hibernate Shards
Issue Type: New Feature
Components: engine
Affects Versions: 3.0.0.Beta2
Reporter: Emmanuel Bernard
Assignee: Max Ross
Priority: Minor
When 2PC is not used, it can be interesting to minimize the risk and flush all operations
before running all the commits.
We might be able to guess that and disable the internal Hibernate flush for each session
in this case,
we also could let this as a recommended pattern for users (trigger flush manually before
commit)
or we could do it during transaction.commit() maybe optionally (define a flag property)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira