Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (70 sloc) 4.75 KB
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:int-jms="http://www.springframework.org/schema/integration/jms"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.0.xsd
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-3.0.xsd
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd
http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms-3.0.xsd">
<bean id="JMSConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
<constructor-arg>
<jee:jndi-lookup jndi-name="factory/ConnectionFactory">
<jee:environment>
java.naming.factory.initial=net.timewalker.ffmq3.jndi.FFMQInitialContextFactory
java.naming.provider.url=tcp://localhost:10002
</jee:environment>
</jee:jndi-lookup>
</constructor-arg>
<property name="sessionCacheSize" value="10" />
</bean>
<!-- master -->
<int:channel id="screening.requests.chunking" />
<int-jms:outbound-channel-adapter connection-factory="JMSConnectionFactory" channel="screening.requests.chunking"
destination-name="queue-screening-requests-chunking" />
<!-- slave -->
<jms:listener-container connection-factory="JMSConnectionFactory" transaction-manager="transactionManager"
acknowledge="transacted" concurrency="8">
<jms:listener destination="queue-screening-requests-chunking" response-destination="queue-screening-replies-chunking"
ref="chunkHandler" method="handleChunk" />
</jms:listener-container>
<!--master -->
<int-jms:message-driven-channel-adapter connection-factory="JMSConnectionFactory" destination-name="queue-screening-replies-chunking"
channel="screening.incoming.chunking" />
<int:channel id="screening.incoming.chunking" />
<int:transformer input-channel="screening.incoming.chunking" output-channel="screening.replies.chunking" method="extract">
<bean class="org.springframework.batch.integration.chunk.JmsRedeliveredExtractor"/>
</int:transformer>
<int:channel id="screening.replies.chunking">
<int:queue/>
</int:channel>
<!-- master -->
<int:channel id="screening.requests.partitioning" />
<int-jms:outbound-channel-adapter connection-factory="JMSConnectionFactory" channel="screening.requests.partitioning"
destination-name="queue-screening-requests-partitioning" />
<!-- slave -->
<int-jms:message-driven-channel-adapter connection-factory="JMSConnectionFactory"
destination-name="queue-screening-requests-partitioning"
channel="screening.handler.in.partitioning"
concurrent-consumers="8"/>
<int:channel id="screening.handler.in.partitioning" />
<int:service-activator input-channel="screening.handler.in.partitioning" output-channel="screening.handler.out.partitioning"
ref="stepExecutionRequestHandler" method="handle" />
<int:channel id="screening.handler.out.partitioning" />
<int-jms:outbound-channel-adapter connection-factory="JMSConnectionFactory"
destination-name="queue-screening-replies-partitioning"
channel="screening.handler.out.partitioning" />
<!-- master -->
<int-jms:message-driven-channel-adapter connection-factory="JMSConnectionFactory" channel="screening.staging.partitioning"
destination-name="queue-screening-replies-partitioning" />
<int:channel id="screening.staging.partitioning" />
<int:aggregator ref="JMSPartitionHandler" method="aggregate"
input-channel="screening.staging.partitioning" output-channel="screening.replies.partitioning" send-timeout="3600000"/> <!-- 1h in [ms] -->
<int:channel id="screening.replies.partitioning">
<int:queue />
</int:channel>
</beans>
You can’t perform that action at this time.