change jta transaction timeout from default to custom
问题 I am using Atomikos for JTA transaction. I have following setting for JTA: UserTransactionImp userTransactionImp = new UserTransactionImp(); userTransactionImp.setTransactionTimeout(900); but when my code perform JTA transaction, then if it takes more than 5 minutes (which is default value) then it throws exception: Caused by: com.atomikos.icatch.RollbackException: Prepare: NO vote at com.atomikos.icatch.imp.ActiveStateHandler.prepare(ActiveStateHandler.java:231) at com.atomikos.icatch.imp