30 lines
1.5 KiB
XML
Raw Normal View History

2025-03-19 10:28:25 +08:00
<?xml version="1.0" encoding="utf-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/rabbit
http://www.springframework.org/schema/rabbit/spring-rabbit-2.2.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_FALLBACK" />
</bean>
<bean id="OICSender" class="com.cim.idm.framework.esb.GenericSender">
<property name="requester" ref="toOICSender"></property>
</bean>
<bean id="toOICSender" class="com.cim.idm.framework.esb.amqp.RabbitSender">
<property name="destination" value="${company}.${factory}.WMS.${mode}.OIC"></property>
<property name="exchange" value="WMS.${mode}.OIC"></property>
<property name="routingKey" value="WMS.${mode}.OIC"></property>
<property name="rabbitTemplate" ref="rabbitTemplate"></property>
</bean>
<rabbit:queue name="${company}.${factory}.WMS.${mode}.OIC" durable="false"
exclusive="false" auto-delete="true"/>
<rabbit:topic-exchange name="WMS.${mode}.OIC" >
<rabbit:bindings>
<rabbit:binding pattern="WMS.${mode}.OIC" queue="${company}.${factory}.WMS.${mode}.OIC" ></rabbit:binding>
</rabbit:bindings>
</rabbit:topic-exchange>
</beans>