Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Real" Routing Connection Factory Test
- Loading branch information
1 parent
25b9ba6
commit cb57091
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...resources/org/springframework/amqp/rabbit/core/RabbitTemplateIntegrationTests-context.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?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.xsd"> | ||
|
||
<rabbit:template id="routingTemplate" | ||
connection-factory="rcf" | ||
send-connection-factory-selector-expression="messageProperties.headers['cfKey']" /> | ||
|
||
<bean id="rcf" class="org.springframework.amqp.rabbit.connection.SimpleRoutingConnectionFactory"> | ||
<property name="targetConnectionFactories"> | ||
<map> | ||
<entry key="foo" value-ref="cf1"/> | ||
<entry key="bar" value-ref="cf2"/> | ||
</map> | ||
</property> | ||
<property name="defaultTargetConnectionFactory" ref="defaultCF"/> | ||
</bean> | ||
|
||
<bean class="org.springframework.amqp.rabbit.core.RabbitTemplateIntegrationTests$RCFConfig" /> | ||
|
||
</beans> |