Seems to me that each message is being read from ActiveMQ in it's own
transaction, so, you can't really have this batching happen in one
transaction. You might want to
* Read each message from AMQ in it's own JMS transaction
* Write the content of each message to a database
* Then, have route initiated by a timer that reads all data batched
'so far' from the database, aggregates it, and then sends to a JMS
queue.
/Ade
On 10 Mar 2009, at 14:33, Claus Ibsen wrote:
On Tue, Mar 10, 2009 at 3:23 PM, Thomas Beckmann
<thomas.beckm...@freiheit.com> wrote:
Hi,
we are using camel 1.6 and we have a simple route that reads from
an activemq
queue and writes to another activemq queue based on a recipient
list. The
read and write is done in a transaction.
Is it possible to somehow configure a batchsize and timeout so that
a couple
of messages are processed in one transaction?
Could you also try the ActiveMQ user forum? Could be AMQ has such
support.
However in Camel I am not aware of such a support.
What is the reason for this?
Thanks in advance
Thomas
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com