anypoint connectors

9
Anypoint Connectors Anypoint Connectors receive or send messages between Mule and one or more external sources, such as files, databases, or Web services. Connectors can act as message sources by working as inbound endpoints, they can act as a message processor that performs an operation in the middle of a flow, or they can be at the end of a flow and act as the recipient of the final payload data.

Upload: ramakrishna-kapa

Post on 10-Jan-2017

94 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Anypoint connectors

Anypoint Connectors

Anypoint Connectors receive or send messages between Mule and one or more external sources, such as files, databases, or Web services. Connectors can act as message sources by working as inbound endpoints, they can act as a message processor that

performs an operation in the middle of a flow, or they can be at the end of a flow and act as the recipient of the final payload data.

Page 2: Anypoint connectors

• Connectors in Mule are either endpoint-based or operation-based:

• Endpoint-based connectors follow either a one-way or request-response exchange pattern and are often (but not always) named and based around a standard data communication protocol, such as FTP and SMTP.

• Operation-based connectors follow an information exchange pattern based on the operation that you select and are often (but not always) named and based around one or more specific third-party APIs.

Page 3: Anypoint connectors

• Endpoint-Based Connectors• Endpoint-based connectors are configured as

either inbound or outbound endpoints in a flow. Inbound endpoints serve as a message source for a flow. Outbound endpoints can occur mid-flow or at the end of flows, and send information to external systems.

Page 4: Anypoint connectors

Endpoint connectors

Page 5: Anypoint connectors

• Operation-Based Connectors• When you add an operation-based connector

to your flow, you immediately define a specific operation for that connector to perform.

Page 6: Anypoint connectors

Operation based connectors

Page 7: Anypoint connectors

Global Connector Configuration

• Some connectors require that connection information such as username, password, and security tokens be configured in a global element rather than at the level of the message processor within the flow. Many connectors of the same type in an application can reference the connector configuration at the global level. For operation-based connectors, the global connector configuration is mandatory, but for most endpoint-based connectors it is optional.

• Note that the global element that you configure in Anypoint Studio is called a Connector Configuration. The corresponding XML tags are <connectorName>:config for operation-based connectors and <connectorName>:connector for endpoint-based connectors. See the examples below.

Page 8: Anypoint connectors
Page 9: Anypoint connectors

JMS Connector Example

• This example shows an endpoint-based JMS connector for the JMS transport. You can configure this connector as an inbound endpoint in a flow. The JMS endpoint includes a mandatory reference to a global connector configuration which contains the connection parameters.