Hi,
the only programmatic transaction management example I saw quickly in the spring documentation is:
Code:
try {
// execute your business logic here
} catch (MyException ex) {
transactionManager.rollback(status);
throw ex;
}
transactionManager.commit(status);
I think it is not enought in my case because I also define the boundary of the transaction:
Code:
try {
.beingTransaction()
logic code
.commitTransaction()
} catch(....) {
doRollback....
} finally {
....
}
I think Spring is much more similar to CMT of J2EE.
About the hibernate settings in my environment:
Code:
<param id="hibernate.show_sql" value="true" />
<param id="hibernate.cache.use_second_level_cache" value="false" />
<param id="hibernate.cache.use_query_cache" value="false" />
<param id="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<param id="hibernate.max_fetch_depth" value="3"/>
<param id="hibernate.bytecode.use_reflection_optimizer" value="true"/>
<param id="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver"/>
<param id="hibernate.connection.url" value="xxxx"/>
<param id="hibernate.connection.username" value="neoflowdb2"/>
<param id="hibernate.connection.password" value="xxx" desc="pass must be established"/>
Any other suggestion?
Thank you.