Quantcast
Channel: Why "TransactionReaper::check timeout for TX" warning in JBoss server.log - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by RedYeti for Why "TransactionReaper::check timeout for TX" warning in JBoss server.log

$
0
0

As per your own comment (but to give an actual example), if you need to increase a transaction time-out you can use an annotation on the method of whichever class defines your transactional boundary (usually a "facade" implmentation).

For example, using org.springframework.transaction.annotation.Transactional

@Transactional(timeout = 600) // value is in seconds

It sounds like you need this for a one-off data conversion task rather than day-to-day production code so increasing the time-out is probably justifiable. Otherwise it would be worth considering batching the processing into smaller chunks and making each one a unique transaction which is expected to complete within the default time-out for your system.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>