Solace JCSMP Streaming - Code Sample

Hi @slsbel,
Ah - you need to produce and consume a block of messages as a single atomic unit? In that case you probably need transactions :slight_smile:
We have 2 forms of transaction support, local transactions and XA transactions. XA is only available in JMS. Have a look at local transactions (session based transactions) . They enable you to consume a block of messages, then take a decision: acknowledge, in which case all are acked at once, or rollback, in which case all are left on the queue.