use of io.seata.saga.engine.StateMachineEngine in project javaboy-code-samples by lenve.
the class DubboSagaTransactionStarter method main.
public static void main(String[] args) {
AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[] { "spring/seata-saga.xml", "spring/seata-dubbo-reference.xml" });
StateMachineEngine stateMachineEngine = (StateMachineEngine) applicationContext.getBean("stateMachineEngine");
// transactionCommittedDemo(stateMachineEngine);
//
transactionCompensatedDemo(stateMachineEngine);
new ApplicationKeeper(applicationContext).keep();
}
Aggregations