Class StandardMessageProducer

All Implemented Interfaces:
AdaptrisComponent, AdaptrisMessageProducer, AdaptrisMessageSender, AdaptrisMessageWorker, ComponentLifecycle, ComponentLifecycleExtension, MessageEventGenerator

@ComponentProfile(summary="Publishes a message to RabbitMQ", tag="amqp, rabbitmq", recommended=RabbitMqConnection.class, since="4.3.0") public class StandardMessageProducer extends ProduceOnlyProducerImp
Publishes a message to RabbitMQ.

RabbitMQ requires you to programatically declare both the exchange and queue before use. If you are not targetting the default exchange or have specific requirements about the queue declaration then please remember to configure a Declaration.ExchangeDeclaration and Declaration.QueueDeclaration respectively. By default we simply use the default exchange and the queue is declared to be durable, non-exclusive, with no auto-delete and no additional arguments.

Use a property-builder to configure how the BasicProperties object is created. Unless explicitly configured there will be no additional properties in the call to Channel#basicPublish.