<?xml version="1.0" encoding="UTF-8"?>
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
<!-- 事务消息生产 -->
|
<bean id="localTransactionChecker"
|
class="com.yeshi.fanli.util.rocketmq.order.MQLocalTransactionChecker"></bean>
|
<bean id="orderTransactionProducer"
|
class="com.aliyun.openservices.ons.api.bean.TransactionProducerBean"
|
init-method="start" destroy-method="shutdown">
|
<property name="properties"> <!--事务消息生产者配置信息 -->
|
<props>
|
<prop key="AccessKey">${rocketmq.AccessKey}</prop>
|
<prop key="SecretKey">${rocketmq.SecretKey}</prop>
|
<prop key="NAMESRV_ADDR">${rocketmq.NAMESRV_ADDR}</prop>
|
<prop key="GROUP_ID">GID_ORDER</prop>
|
</props>
|
</property>
|
<property name="localTransactionChecker" ref="localTransactionChecker"></property>
|
</bean>
|
|
</beans>
|