You are previewing Instant Apache ServiceMix How-to.
O'Reilly logo
Instant Apache ServiceMix How-to

Book Description

Learn to create simple ServiceMix-based integration solutions using short, practical, hands-on recipes

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Leverage OSGI to speed up the ESB deployment

  • Define message flow with Camel DSL

  • Expose your system via web services

In Detail

Creating reliable integration solution can be easy if you choose the right tools for the job. Apache Camel and ServiceMix are the leading integration technologies dedicated to dealing with the complexity of the messaging solutions. Learn how to efficiently integrate multiple systems with bleeding edge open source Apache software.

"Instant Apache ServiceMix How-to" is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises that will help you take advantage of the real power that is behind the leading Apache integration stack.

This book guides the reader in how to install ServiceMix and how to get it up and running. It will take you through a number of practical recipes – starting with the basic commands of Apache Karaf container and ending with the deployment of JMS and web service solutions.

Table of Contents

  1. Instant Apache ServiceMix How-to
    1. Instant Apache ServiceMix How-to
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. 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
    7. 1. Instant Apache ServiceMix How-to
      1. Installing ServiceMix (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Fuse ESB versus ServiceMix
          2. Apache Karaf - under the hood
          3. ServiceMix download assemblies
          4. GUI installer for ServiceMix
      2. Installing ServiceMix with JBI support (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. ServiceMix 3 versus ServiceMix 4
          2. Camel JBI component
          3. What ServiceMix authors say about JBI
      3. Starting ServiceMix (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Display logs via the Karaf console or directly from the text file
          2. Try to OSGI your application instead of restarting it.
          3. History search in the Karaf Console
          4. The tail command
      4. Displaying the ServiceMix log (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Displaying the last exception
          2. Additional tail options
      5. Configuring the ServiceMix logger (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Not only Log4J
          2. Restart
      6. Adjusting logger settings in the running ServiceMix instance (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Audit logging
          2. JMX
          3. Removing a cached configuration
      7. Listing the available bundles (Should know)
        1. Getting ready
        2. How to do it
        3. How it works...
        4. There's more...
          1. Using grep
          2. Startup level threshold
      8. Listing the available features (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Filtering results with grep
      9. Installing a new feature (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Karaf tab completion
      10. Installing a non-OSGI JAR as a bundle (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Not only the OSGI bundles
          2. Are your dependencies OSGI ready
      11. Starting the ServiceMix Web Console (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Web Console as the Karaf shell replacement
          2. Security considerations
          3. Changing the default HTTP port of the web console
      12. Creating and deploying a new Camel route (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Camel references
          2. Camel Context per module
      13. Updating Camel routes at runtime (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Bundles provisioning
      14. Routing to the embedded ActiveMQ broker (Should know)
        1. Getting started
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Queues on demand
          2. Changing the ActiveMQ port
          3. ActiveMQ reading
      15. Routing to an external ActiveMQ broker (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Generic JMS connectivity
          2. ActiveMQ connection pooling
      16. Exposing a contract-first web service (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Why use contract-first
          2. WSDL editors
      17. Exposing a code-first web service (Must know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. JAX-WS versus JAX-RPC
          2. Learn more about CXF
      18. Exposing the Rest web service (Should know)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. JSR-311
          2. JSON responses
          3. Camel CXF RS component
      19. Clustering ServiceMix (Become an expert)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. More ways of load balancing
          2. Managing ServiceMix clusters