[rabbitmq-discuss] messages delivery question

Andrius Norkaitis andrius.norkaitis at oryo.lt
Sat Jul 24 18:40:36 BST 2010


Hi,

 

I got some strange situation with messages delivery.

Publisher sends two messages, first one is send with TxSelect, second -
without:

 

ch.TxSelect()

ch.BasicPublish(exchange, routingKey, true, false, basicProperties, body);
//publishing #1 msg

ch.TxCommit();

ch.BasicPublish(exchange, routingKey, true, false, basicProperties, body);
//publishing #2 msg

 

Problem is that consumer gets only first message. Second message is
delivered only if I call this code again and send new two messages, where
the last one is not delivered immediately again.

 

Consumer is .NET client using Subscription class: sub = new Subscription(ch,
BindToQueryID, false, exchange, exchangeType, routingKey);

 

Any ideas?

 

Best regards

Andrius Norkaitis

Skype: andriusnorkaitis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100724/4dd01341/attachment.htm>


More information about the rabbitmq-discuss mailing list