You are previewing Mule ESB Cookbook.
O'Reilly logo
Mule ESB Cookbook

Book Description

If you’re familiar with Java, this book will enable you to create a lightweight enterprise service bus using the Mule framework. Starting with the basics, you’ll soon have applications on different platforms communicating with each other.

  • Step-by-step practical recipes to get started with Mule ESB 3.4

  • Learn to effectively use Mule ESB in a real-world scenario

  • Expert advice on using filters, connecting with cloud, integrating with web services, and much more

  • In Detail

    Mule ESB 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 efficiently exchange data. You can therefore use Mule ESB to allow different applications to communicate with each other via a transit system to carry data between applications within your enterprise or across the Internet. It is also useful if you use more than one type of communication protocol while integrating three or more applications/services.

    "Mule ESB Cookbook" takes readers through the practical approach of Mule ESB 3.3. This book solves numerous issues faced by developers working on Mule ESB in real time and provides use cases on how to integrate Mule with other technologies. It also focuses on development and delivery using Mule ESB through integrating, migrating, and upgrading advanced technological tools.

    This book gives the reader a strong overview of the Mule framework using practical and easy-to-follow examples. It has three sections: problems, approaches, and solutions. The key aim of this book is to show you how to allow different applications to communicate with each other by creating a transit system to carry data between applications within your enterprise or across the Internet. Mule ESB enables easy integration of existing systems, regardless of the different technologies that the applications use, including JMS, Web Services, JDBC, HTTP, and more.

    ""Mule ESB Cookbook"" will teach you everything you need to know to communicate between applications that are built on different platforms, as well as how to migrate them in your application across multiple platforms or on the cloud.

    Table of Contents

    1. Mule ESB Cookbook
      1. Table of Contents
      2. Mule ESB Cookbook
      3. Credits
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with Mule ESB
        1. Introduction
        2. Understanding Mule concepts and terminologies
          1. Getting ready
          2. How to do it...
            1. What is Mule ESB?
          3. How it works...
        3. Setting up the Mule IDE
          1. Getting ready
          2. How to do it...
            1. Mule configuration
        4. Installing Mule Studio
          1. Getting ready
          2. How to do it...
            1. A package tree
            2. A palette
            3. A canvas
        5. Configuring Mule components
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Palette components
              1. Endpoints
              2. Components
              3. Transformers
              4. Filters
              5. Routers
              6. Cloud Connectors
        6. Deploying your first Hello World application on the Mule server
          1. Getting ready
          2. How to do it...
          3. How it works...
      9. 2. Working with Components and Patterns
        1. Introduction
        2. Configuring the component
          1. Getting ready
          2. How to do it...
            1. The Java component
            2. Custom filters
          3. How it works...
        3. Using the Echo component to display the message payload
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Using the command prompt
        4. Using a Flow Reference component to synchronously execute another flow
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Publishing a RESTful web service using the REST component
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Publishing a SOAP-based web service using the SOAP component
          1. Getting ready
          2. How to do it...
          3. How it works...
      10. 3. Using Message Property, Processors, and Sources
        1. Introduction
        2. Understanding components
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Understanding message sources
          1. Getting ready
          2. How to do it...
            1. Inbound Endpoints
            2. Polls
            3. Custom message sources
          3. How it works...
        4. Using message processors to control the message flow
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Understanding message property scopes
          1. Getting ready
          2. How to do it...
          3. How it works...
      11. 4. Endpoints
        1. Introduction
        2. Configuring the Generic Endpoint
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring the HTTP Endpoint
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Configuring the IMAP Endpoint to retrieve e-mails
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Using the JDBC Endpoint to connect to the database
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Implementing the File Transport channel using the File Endpoint
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Sending messages asynchronously using the AJAX Endpoint
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Using the Servlet Endpoint to listen to events or messages from servlet requests
          1. Getting ready
          2. How to do it...
          3. How it works...
      12. 5. Transformers
        1. Introduction
        2. Configuring the JSON-to-Object transformer
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring the Object-to-XML transformer
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Configuring the Message and Variable transformers
          1. Getting ready
          2. How to do it...
            1. How to add session properties

          3. How it works...
            1. The Variable transformer
        5. Creating the custom transformer
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Understanding the DataMapper transformer
          1. Getting ready
          2. How to do it...
          3. How it works...
      13. 6. Configuring Filters
        1. Introduction
        2. Configuring the Logic filters – And/Or/Not
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Performing filtering according to the exception type
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Filtering messages by evaluating expressions
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. XPath expressions
            2. JXPath expressions
            3. OGNL expressions
        5. Handling incoming events or messages using the Message filter
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Configuring the Wildcard filter
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Creating a Custom filter
          1. Getting ready
          2. How to do it...
          3. How it works...
      14. 7. Handling Exceptions and Testing
        1. Introduction
        2. Understanding Messaging Exception strategies
        3. The Catch Exception Strategy
          1. Getting ready
          2. How to do it...
            1. Use case
        4. Configuring the Choice Exception Strategy
          1. Getting ready
          2. How to do it...
            1. Use case
        5. Configuring the Reference Exception Strategy
          1. Getting ready
          2. How to do it...
        6. Configuring the Rollback Exception Strategy
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Testing with JUnit in Mule ESB
          1. Getting ready
          2. How to do it...
          3. How it works...
      15. 8. Introducing Web Services
        1. Introduction
        2. Proxying web services
          1. Getting ready
          2. How to do it...
            1. Web service proxying
            2. Protocol binding
          3. How it works...
        3. Creating JAX-WS services
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Creating web services using the REST component
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Calling external web services using the SOAP component
          1. Getting ready
          2. How to do it...
          3. How it works...
      16. 9. Understanding Flows, Routers, and Services
        1. Introduction
        2. Configuring the All Router/Flow Control
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring the Choice Router/Flow Control
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Configuring the Splitter Flow Control
          1. Getting ready
          2. How to do it...
          3. How it works...
      17. 10. Configuring Cloud Connectors
        1. Introduction
        2. Configuring the Twitter Cloud Connector
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Configuring the DropBoxIntegration folder
          1. Getting ready
          2. How to do it...
          3. How it works...
      18. Index