Class PublishToDefaultExchange

java.lang.Object
com.adaptris.core.ServiceImp
interlok.rabbitmq.PublishToDefaultExchange
All Implemented Interfaces:
AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConnectedService, MessageEventGenerator, Service, StateManagedComponent

@ComponentProfile(summary="Put the message payload onto an AMQP Queue", recommended=RabbitMqConnection.class, since="4.3.0", tag="amqp,rabbitmq") public class PublishToDefaultExchange extends ServiceImp implements ConnectedService
Wraps StandardMessageProducer as a service for discoverability purposes.

This is the simplest way to publish a message to RabbitMQ to an exchange of "" which is equivalent to the default exchange.

It does not expose all the configuration possible to StandardMessageProducer and is included as a convenience to simply publish a message to a RabbitMQ Queue. It does expose a RabbitMqConnection as configuration so you will have the opportunity to share connections.