Contents - Scatter Gather is used to send a message to multiple endpoints concurrently. It collects

download Contents - Scatter Gather is used to send a message to multiple endpoints concurrently. It collects

of 162

  • date post

    03-Sep-2019
  • Category

    Documents

  • view

    0
  • download

    0

Embed Size (px)

Transcript of Contents - Scatter Gather is used to send a message to multiple endpoints concurrently. It collects

  • 1

    1 Contents

    Contents

    CONTENTS ................................................................................................................................................ 1

    HTTP ............................................................................................................................................................ 5 HTTP Listener ........................................................................................................................................................ 5

    HTTP Request ........................................................................................................................................................ 9

    HTTPS ........................................................................................................................................................ 11

    Consuming Secured Service ................................................................................................................................. 14

    Using HTTP Request Connector with SSL enabled .................................................................................................. 14

    HTTP Request Connector Configuration to access SSL enabled service .................................................................. 14

    Using Web Service Consumer .................................................................................................................................. 16

    ROUTING................................................................................................................................................. 18

    Splitters ............................................................................................................................................................... 18

    Collection splitter and Collection Aggregator ....................................................................................................... 19

    Message chunk splitter and Message chunk Aggregator ...................................................................................... 19

    Scatter Gather ..................................................................................................................................................... 20

    For Each ............................................................................................................................................................... 21

    Main Flow, Sub Flow and Flow reference. ........................................................................................................... 22

    FILTERS:.................................................................................................................................................. 23

    DATA MAPPER ...................................................................................................................................... 25

    DataMapper Concepts: ........................................................................................................................................ 26

    Basic Usage with Example: ...................................................................................................................................... 26

    1. Viewing sample mapping values: ........................................................................................................................ 28

    2. Input and Output Metadata: ............................................................................................................................... 29

    3. Propagating DataSense data: .............................................................................................................................. 31

    4. Mapping only even numbered values: ................................................................................................................ 33

    5. Streaming large files through DataMapper: ........................................................................................................ 35

    6. Using MEL to invoke Java functions: ................................................................................................................... 37

    7. Using Flows as Lookup Tables: ............................................................................................................................ 40

  • 2

    2 Contents

    JMS ............................................................................................................................................................ 43

    Queues: ............................................................................................................................................................... 43

    Configuration with Example: ................................................................................................................................... 43

    Topics: ................................................................................................................................................................. 49

    Example: .................................................................................................................................................................. 50

    Example to understand how JMS uses serializing, and de-serializing objects: ...................................................... 52

    DATABASE ................................................................................................................................................ 57 Database URL ...................................................................................................................................................... 58

    INSERT using “Template Query” ......................................................................................................................... 60

    INSERT using “Parameterized Query” ................................................................................................................. 64

    INSERT using “Dynamic Query” .......................................................................................................................... 66

    UPDATE using “Parameterized Query” ............................................................................................................... 69

    UPDATE using “Bulk Mode” ................................................................................................................................ 71

    Execute DDL ........................................................................................................................................................ 74

    Bulk Execute ........................................................................................................................................................ 75

    Stored Procedure ................................................................................................................................................ 77

    DELETE ................................................................................................................................................................ 80

    SELECT ................................................................................................................................................................. 82

    Building SOAP web services in Mule .................................................................................................................... 84

    Simple class as a web service ............................................................................................................................... 86

    Consuming using Simple Client ............................................................................................................................ 87

    Creating a service using JAX-WS service ............................................................................................................... 88

    Creating Client using jaxws client ......................................................................................................................... 90

    Securing Web services ......................................................................................................................................... 96

    Consuming using Web service consumer ............................................................................................................. 98

    JAVA CUSTOM COMPONENTS ....................................................................................................... 105

    Java Component: ............................................................................................................................................... 105

    Java Component with Singleton: ....................................................................................................................... 107

    Invoke component: ............................................................................................................................................ 111

    Reflection Entry Point Resolver: ........................................................................................................................ 114

  • 3

    3 Contents

    Multiple Arguments method: ............................................................................................................................ 115

    Single Argument method: ............................................................