You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by MSE <se...@yahoo.fr> on 2012/07/20 10:36:31 UTC

Re: Multiple JPA Consumers

hi, 
i am new in camel and i have a problem to create a mutli processing JPA
route on a table:
my configuration is seems to be correct but no multiprocessing occur on my
bean AcquisitionMvibsComponent ... any suggestion would be appreciate

here is my configuration


<threadPool id="myPool" threadName="MPH" poolSize="16"
			maxPoolSize="30" maxQueueSize="1000" />

<route>
		<from
			
uri="jpa://diamis.xpeach.acquisition.AcquisitionRequest?maximumResults=5&#38;consumer.namedQuery=acquisitionrequest&#38;consumer.delay=1000&#38;persistenceUnit=monitoringPU"
/>
			<transacted ref="required_new_database" />
			<camel:doTry>
				
				
				<threads executorServiceRef="myPool">
					<bean ref="AcquisitionMvibsComponent" method="process" />
				</threads>
				
				
				<to uri="MQconnection:queue:DISTRIBUTION.DISPATCHER" />
				<camel:doCatch>
					<exception>diamis.xpeach.exception.XPeachException</exception>
					<bean ref="ExceptionToStringTransformer" method="doTransform"></bean>
					<to uri="MQconnection:queue:ERROR"></to>
				</camel:doCatch>
			</camel:doTry>
		</route>



--
View this message in context: http://camel.465427.n5.nabble.com/Multiple-JPA-Consumers-tp472290p5716287.html
Sent from the Camel - Users mailing list archive at Nabble.com.