Spring Integration - Concurrent Service Activators
===

I have a queue channel, and a service activator with a poller which reads from that queue. I'd like to have configuration to say "I want 50 threads to poll that queue, and each time you poll and get a message back, on this thread, invoke the service the service-activator points to."

The service has no `@Async` annotations, but is stateless and safe to run in a concurrent fashion.

Will the below do that? Are there other preferred ways of achieving this?

<!-- language: lang-xml -->

    <int:channel id="titles">
    	<int:queue/>
    </int:channel>
	
	<int:service-activator output-channel="resolvedIds" ref="searchService" method="searchOnTitle" input-channel="titles">
		<int:poller fixed-delay="100" time-unit="MILLISECONDS" task-executor="taskExecutor"></int:poller>
	</int:service-activator>
	
	<task:executor id="taskExecutor" pool-size="50" keep-alive="120" />