How does an application connect to a messaging channel to send and receive messages?
Connect an application to a messaging channel using a Message Endpoint, a client of the messaging system that the application can then use to send or receive messages.
The To eip supports 2 options, which are listed below.
Required Sets the uri of the endpoint to send to.
Sets the optional ExchangePattern used to invoke this endpoint.
Sets the description of this node.
to is used for sending messages to a static endpoint. In other words
to sends message only to the same endpoint.