concept outbound endpoint in category mule

appears as: n outbound endpoint, outbound endpoints, outbound endpoint, An outbound endpoint, The outbound endpoint, outbound endpoints, outbound endpoint
Mule in Action, Second Edition

This is an excerpt from Manning's book Mule in Action, Second Edition.

Flows are the primary mechanism for building integration applications with Mule. A flow consists of a source of data followed by a series of message processors. A message begins its life from an inbound endpoint, which could be an HTTP POST or the scheduled polling of a database table, and is processed by the subsequent processors in the flow in the order in which they are defined. Flows support multiple invocation styles as defined by their exchange pattern. A one-way exchange pattern typically means the flow is asynchronous, for instance. The request-response exchange pattern means the flow will return a result. A flow can optionally end with an outbound endpoint, which sends the message to another flow or server.

Connectors are Mule’s abstraction for sending data, receiving data, and interacting with different APIs. The most common form of connector you’ll use in Mule is called a transport. Transports provide an adaptation layer for a protocol, like HTTP or JMS. Transports provide sources and sinks for data. They’re used to get data into and out of flows. A source of data for a flow is called an inbound endpoint. A sink, or destination for data, is called an outbound endpoint. The first part of this chapter will cover some of Mule’s more prominent transports.

Table 3.1. Configuring the file transport

Property

Type

Target

Required?

Default

Description

writeToDirectory String Connector, outbound endpoint No   The target directory for file output
readFromDirectory String Connector, inbound endpoint No   The source directory for file input
autoDelete Boolean Connector, inbound endpoint No true Whether or not to delete the source file after it has been read
outputAppend Boolean Connector, outbound endpoint No false Specifies that the output is appended to a single file instead of being written to a new file
pollingFrequency long Connector, inbound endpoint No 0 Specifies the interval in milliseconds at which the source directory should be polled
moveToDirectory String Connector, inbound endpoint No   The directory to move a file to once it has been read—if this and autoDelete are unset, the file is deleted
moveToPattern String Connector, inbound endpoint No   The pattern used to indicate what files should be moved to the moveToDirectory—files not matching this pattern are deleted
outputPattern String Connector, outbound endpoint No   The pattern used when creating new files on outbound endpoints—discussed in detail later
Figure 9.11. Creating transactions on outbound endpoints