Upgrade to Pro — share decks privately, control downloads, hide ads and more …

mule basic

Avatar for nida nida
June 03, 2016

mule basic

Its going to help you to understand the mule Basics.

Avatar for nida

nida

June 03, 2016

Other Decks in Technology

Transcript

  1. • Mule, the runtime engine of Anypoint Platform, is a

    lightweight Java-based enterprise service bus (ESB) and integration platform that allows developers to connect applications together quickly and easily, enabling them to exchange data. • Mule applications accept and process events as messages through several message processors plugged together in a flow. WHY MULE ?
  2. A flow is the construct within which you link together

    several individual elements to handle the receipt, processing, and eventual routing of a message. How flows look like? FLOWS
  3. • Select From mule pallete flow. • Drag flow icon

    from mule pallete to message flow. • Its looks like something FLOW
  4. At the simplest level, flows are sequences of message-processing events.

    A message that enters a flow may pass through a wide variety of processors.
  5. . In general, a building block corresponds to an icon

    in the Anypoint Studio GUI, which in turn represents a message source, processor, or component. HOW TO CREATE FLOW
  6. Subflows, which always run synchronously, inherit both the processing strategy

    and exception strategy of the flow that triggered its execution. SUBFLOW
  7. Like a subflow, a synchronous flow processes messages synchronously relative

    to the flow that triggered it. Unlike a subflow, a synchronous flow does not inherit the triggering flow’s processing or exception strategies SYNCHRONOUS FLOWS
  8. Asynchronous flows begin processing a message when triggered by another

    flow. Since this type of flow does not need to return data to the flow which triggered it, it can execute simultaneously to its triggering flow. ASYNCHRONOUS FLOWS
  9. A batch job is a top-level element in Mule which

    exists outside all Mule flows. Batch jobs split large messages into records which Mule processes asynchronously; just as flows process messages, batch jobs process records. BATCH JOBS
  10. Transformers convert message payloads to formats expected by their destinations.

    Mule ESB provides many standard transformers, which you configure using predefined elements and attributes in your Mule XML configuration file The most powerful tool for transforming a message is the DataWeave Transformer, which can not only change the format of the message, but also rename, aggregate, split or rearrange the fields in it in any way you desire. TRANSFORMERS
  11. Configuring Transformers-:You can configure a transformer locally or globally. You

    configure a local transformer right on the endpoint or in a flow or where you want to apply it, whereas you configure a global transformer before any <model> or <flow> elements in your Mule configuration file and then reference it. Chaining Transformers-:You can chain transformers together so that the output from one transformer becomes the input for the next. To chain transformers, you create a space-separated list of transformers in thetransformer-refs or responseTransformer-refs attributes or by creating multiple <transformer>elements as shown above. TRANSFORMERS
  12. ObjectToOutputHandler-: Converts a byte array into a String. ObjectToString-: Returns

    human-readable output for various kinds of objects. Useful for debugging. StringAppendTransformer-: Appends a string to an existing string. StringToObjectArray-: Converts a string to an object array. Use the configuration element <string-to-byte-array-transformer> TRASFORMATION EXAMPLE
  13. Anypoint Connectors facilitate easy integration of your Mule applications with

    third-party APIs and standard integration protocols. Use connectors within your application’s flows to send and receive data using a protocol or specific API. CONNECTORS
  14. All connectors can function as endpoints by sending and receiving

    messages between flows or between a flow and some other data source outside of Mule. Some connectors are endpoint-based, meaning that you configure them either as inbound or outbound endpoints in your flow, then specify other operation logic within the configuration of that endpoint. Some connectors are operation-based, meaning that they allow you to invoke specific actions against an API, Web service, or database. TYPES OF CONNECTOR
  15. Mule bundles more than a dozen Filters that determine whether

    a message can proceed through an application flow. The simplest filters implement basic logic operators (such as and, or, and not), but these simple elements can be combined in various ways to specify complex logical conditions. FILTERS