Hi,
I want to use parallel processing of incoming messages per an attribute of
my bean and sending that messages with the camel proxy. I have no idea how
to achieve this.
Client
====
My client is sending a java bean "Job" through an interface "DataService".
This is injected in my client by spring:
<camel:proxy
id="dataService"
serviceInterface="de.xxx.dataservice.DataService"
serviceUrl="activemq:queue:dataServiceDestination"/>
The method used from the interface is of type void, so I want to use async
processing.
Server
=====
The server is receiving this by the camel xml definition:
<endpoint id="dataServiceQueue"
uri="activemq:queue:dataServiceDestination"/>
<route>
<from ref="dataServiceQueue"/>
<to uri="dataService"/>
</route>
This works fine so far! Now I want to have 10 threads for processing
messages concurrently with my dataService. But I need ordered processing as
explained already.
How can I do that?
I guess the client has to send with the JMSXGroupID and the server has to
create several threads for listening...
I want to use spring based configuring of camel. What is the corresponding
xml version of:
from("activemq:a").setHeader("JMSXGroupID",
xpath("/invoice/productCode")).to("activemq:b");
?
Thanks for your help in advance
Ingo
--
View this message in context:
http://www.nabble.com/Using-Message-Groups-with-Proxy-and-Spring-tp18400385s22882p18400385.html
Sent from the Camel - Users mailing list archive at Nabble.com.