camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deepak_a <angesh...@gmail.com>
Subject How to improve throughput by grouping messages in a Transaction
Date Tue, 03 Nov 2015 13:25:01 GMT

All,

I have a simple bridge between ActiveMQ and TibcoEMS.

There are 2 routes.
1st Route moves messages into ActiveMQ Queue. (thisroute reads messages from
Disk and publishes to ActiveMQ).
2nd Route consumes messages from ActiveMQ and publish to a Topic in
TibcoEMS.

For both the routes, because of limitations, I can use only  one thread.
i.e. one thread publishing to ActiveMQ, one thread consuming from ActivemQ
and publishig to TIBCO EMS.

In JMSTemplate I have set sessionTransacted is set to True (to enable
redelivery in case of exception thrown)

In each transaction I am moving one message via bridge.
I want to know how can I group a bunch of messages in each transaction? and
receive a single ACK for that group of messages?


This way I can increase the throughput (since I will be sending bulk of
messages instead of one message in a Transaction)


regards
D




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-improve-throughput-by-grouping-messages-in-a-Transaction-tp5773344.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message