i have requirement in our project process jms messages in parallel using threads. our project works this: when file placed in directory poller generates messages , outbound adapter creates jms messages , sends businessqueue. jms listener listens messages queue , launches batch job process file. @ time 1 file processed.
<jms:listener-container concurrency="1" acknowledge="client" container-type="default" destination-type="queue" connection-factory="cachingjmsconnectionfactory" cache="auto"> <jms:listener id="businessfilejmslistener" ref="businessfilejmsreceiver" method="onmessage" destination="${business_jms_queue_name}" /> </jms:listener-container>
the requirement read jms messages queue using threads , process files in parallel. example have read 3 messages @ time , launch 3 batch jobs , process 3 files using threads. in above configuration there property called concurrency. don't know if increase number property works or not ? please suggest if there way implement our requirement. final requirement read 3 jms messages queue @ time , process 3 files @ time. please suggest. thanks.
yes, concurrency="3"
receive messages on 3 distinct threads.
Comments
Post a Comment