The 2 lines you posted seem OK. Can you post more of your code? I'm not sure how you verify this but messages are discarded
when they reach head of the queue: this is documented.
AMQP.BasicProperties#setXYZ methods are deprecated in favor of a builder class,
AMQP.BasicProperties.Builder but even then they are not going away soon.
> --
> You received this message because you are subscribed to the Google Groups "rabbitmq-users"
> group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
rabbitmq-user...@googlegroups.com.
> To post to this group, send an email to
rabbitm...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ