activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Consuming a group of messages in a single transaction
Date Fri, 28 Jul 2006 08:33:07 GMT
Can you not split up the 200Mb file into pieces?

On 7/28/06, nlif <> wrote:
> Thanks James.
> Let me describe a typical use-case: I need to send some kind of a command
> object along with a binary file. I serialize the command object to XML and
> send it as a JMS TextMessage. Now comes the file, which is quite large
> (~200Mb), so I need streaming. The problem is - what happens if the consumer
> got the TextMessage and acknowledged it, and then crashed? The File may
> eventually get there, possibly using a different consumer thread (*) but the
> TextMessage will not be redelivered since it was acknowledged. That's why,
> in my opinion, and please correct me if I'm wrong here, I need a transaction
> to include both the TextMessage and the file.
> Naaman
> (*) Since we're deployed in a cluster, the TextMessage and the File might
> have ended up in different nodes altogether, but luckily there's ActiveMQ
> MessageGroups :-)
> --
> View this message in context:
> Sent from the ActiveMQ - User forum at



View raw message