Created
May 6, 2013 10:56
-
-
Save NaveenGShephertz/5524483 to your computer and use it in GitHub Desktop.
sample spring context file
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/integration" | |
xmlns:jms="http://www.springframework.org/schema/integration/jms" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/integration | |
http://www.springframework.org/schema/integration/spring-integration.xsd | |
http://www.springframework.org/schema/integration/jms | |
http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> | |
<jms:message-driven-channel-adapter | |
channel="fromJMS" destination-name="test.queue" /> | |
<channel id="fromJMS"> | |
</channel> | |
<beans:bean id="sharedManager" | |
class="com.test.service.SharedManager" /> | |
<beans:bean id="connectionFactory" | |
class="org.apache.activemq.ActiveMQConnectionFactory"> | |
<beans:property name="brokerURL" value="tcp://localhost:61616" /> | |
</beans:bean> | |
<header-value-router input-channel="fromJMS" | |
header-name="type" default-output-channel="non-matches-channel"> | |
<mapping value="shared" channel="sharedChannel" /> | |
<mapping value="dedicated" channel="dedicatedChannel" /> | |
</header-value-router> | |
<channel id="sharedChannel"> | |
</channel> | |
<channel id="dedicatedChannel"> | |
</channel> | |
<channel id="non-matches-channel"> | |
<queue /> | |
</channel> | |
<header-value-router input-channel="sharedChannel" | |
header-name="action" default-output-channel="non-matches-channel"> | |
<mapping value="deploy" channel="sharedDeployChannel" /> | |
<mapping value="create" channel="sharedCreateChannel" /> | |
</header-value-router> | |
<channel id="sharedDeployChannel"> | |
<queue /> | |
</channel> | |
<channel id="sharedCreateChannel"> | |
<queue /> | |
</channel> | |
<service-activator input-channel="sharedDeployChannel" | |
ref="sharedManager" method="deploy"> | |
</service-activator> | |
<service-activator input-channel="sharedDeployChannel" | |
ref="sharedManager" method="create"> | |
</service-activator> | |
<poller id="defaultPoller" default="true" max-messages-per-poll="5" fixed-rate="1000"/> | |
</beans:beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment