Commit 3b0cb1c4 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #9641 from Gytis Trikleris

* gh-9641:
  Delay Narayana recovery manager until it's started explicitly
parents 5a8a8637 f43ad001
......@@ -22,6 +22,7 @@ import javax.jms.Message;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
import com.arjuna.ats.arjuna.recovery.RecoveryManager;
import com.arjuna.ats.jbossatx.jta.RecoveryManagerService;
import org.jboss.narayana.jta.jms.TransactionHelper;
import org.jboss.tm.XAResourceRecoveryRegistry;
......@@ -115,6 +116,7 @@ public class NarayanaJtaConfiguration {
@Bean
@DependsOn("narayanaConfiguration")
public RecoveryManagerService narayanaRecoveryManagerService() {
RecoveryManager.delayRecoveryManagerThread();
return new RecoveryManagerService();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment