On 12/09/2010 12:35 PM, Adam Kaminiecki wrote:
Nice, thanks for quick reply.

You are right:) I missed it that becasue when I was using

session.MessageTransfer(exchange,routingKey,mes);

everything is ok. but If I want to set persistence.... How to set Header
for propely sending message to direct and topic exhcange??

You can set the message to be persistent by setting the delivery-mode in delivery properties to be 'persistent' (value 2). You can (orthogonally) set the queue to be durable by setting the durable parameter to declare to true.

The message will be stored persistently if it is marked as persistent and is enqueued on a durable queue.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to