Delay Narayana recovery manager until it's started explicitly
Closes gh-9641
This commit is contained in:
parent
5a8a86375d
commit
f43ad00129
|
|
@ -22,6 +22,7 @@ import javax.jms.Message;
|
||||||
import javax.transaction.TransactionManager;
|
import javax.transaction.TransactionManager;
|
||||||
import javax.transaction.UserTransaction;
|
import javax.transaction.UserTransaction;
|
||||||
|
|
||||||
|
import com.arjuna.ats.arjuna.recovery.RecoveryManager;
|
||||||
import com.arjuna.ats.jbossatx.jta.RecoveryManagerService;
|
import com.arjuna.ats.jbossatx.jta.RecoveryManagerService;
|
||||||
import org.jboss.narayana.jta.jms.TransactionHelper;
|
import org.jboss.narayana.jta.jms.TransactionHelper;
|
||||||
import org.jboss.tm.XAResourceRecoveryRegistry;
|
import org.jboss.tm.XAResourceRecoveryRegistry;
|
||||||
|
|
@ -115,6 +116,7 @@ public class NarayanaJtaConfiguration {
|
||||||
@Bean
|
@Bean
|
||||||
@DependsOn("narayanaConfiguration")
|
@DependsOn("narayanaConfiguration")
|
||||||
public RecoveryManagerService narayanaRecoveryManagerService() {
|
public RecoveryManagerService narayanaRecoveryManagerService() {
|
||||||
|
RecoveryManager.delayRecoveryManagerThread();
|
||||||
return new RecoveryManagerService();
|
return new RecoveryManagerService();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue