I'm trying to implement a web service in camel, where the internal backend communicates over MQ. The part troubling me is that I need to send/receive multiple messages (batch producer/consumer) through the MQ interface, and I'm looking for the best way of doing this.
Currently the service is implemented as a route per soap operation, where each route ends in a JMS endpoint (camel-JMS), but since camel-jms doesn't support multiple messages in the same commit scope, I've begun looking at alternatives. Camel-sjms works as long as we're doing "InOnly", but doesn't support receiving batch messages, and plain out doesn't work in "InOut" mode. 2.16.0 has a batch consumer, but it's not clear how I can connect the component to the existing exchange. One possibility I've considered is to use an intermediate route, that does the batch sending/receiving, along with splitting/aggregating, but I'd like to avoid this if at all possible. So, the question is, how would i do this the best way using camel ? I'd like to avoid, if at all possible,writing my own MQ component with batch support in InOut mode. /Jimmy Sendt fra min iPad.