In order to can answer, you must first tell which transaction-factory you configure for hibernate,
if plain JDBCTransactionfactory (=default) or JTA- or CMT-Transactionfactory.
If you use JDBCTransactionfactory then a commit in hibernate should just commit the hibernate transaction.
Quote:
(both in CMT).
OK, If you use CMT (which uses JTA) with a global transaction then the thing is probably a little bit more complicate,
but also here it should be possible to separate the transactions.
I think it should possible by suspending the current transaction over the suspend method
Code:
getTransactionManager().suspend();
Then you should be free to initialize a separate new (global) transaction (either for hibernate or your Normal SQL environment ).
(Unfortunately I'm not an expert of CMT, so take my hints not to serious.)