I am using AtomikosDataSource
and setting the datasource in Ibatis SqlSessionFactoryBean (db2 database). When my select query is running it is taking 15 seconds and returning the values, but i already have set below properties in my property files.
com.atomikos.icatch.default_jta_timeout = 3000
com.atomikos.icatch.max_timeout = 3000
Hence, i expect this transaction should reply me back as timeout error, but instead it keep running even after 3 seconds. But the same code works fine (that is throws timeout error for CREATE/UPDATE services of course these create/update services marked with annotation @Transactional
. For select query service am not using @Transactional
since it is just a fetch operation)
Note: I am using Spring & Atomikos 4.0.4.