concept Donkey in category mule

appears as: Donkey
Mule in Action, Second Edition

This is an excerpt from Manning's book Mule in Action, Second Edition.

To frame the examples in this book, we hereby introduce you to Prancing Donkey Maltworks, Inc. Prancing Donkey is a rapidly expanding, medium-sized, US-based microbrewery. Its small but competent development group has selected Mule to ease the integration pains as they grow.

Our tour of Mule will begin with a tutorial. You’ll build an application to allow third parties to register products for sale on www.theprancingdonkey.com, Prancing Donkey’s online store. This application will allow Prancing Donkey’s partners to post product data, formatted as JSON, to an HTTP URL. Once the data is accepted, it will be transformed from its original format, a stream of bytes, into a String and placed in a JMS queue from which subsequent processing can take place. This tutorial will demonstrate common tasks you’ll perform when building applications with Mule.

The examples in this chapter will focus on Prancing Donkey’s integrations with Arnor Accounting and Frozen North Freezing, Inc. Arnor Accounting is a small, forwardthinking startup with an SaaS-based accounting application.

It’s hard for anyone to be unaware of the success of Twitter, the immensely popular microblogging service. Prancing Donkey, like most companies, makes extensive use of Twitter as part of its marketing strategy. They’ve gone as far as automating some of their status updates, including publishing their new brews as they’re added to the system. The next listing illustrates how they do this (see figure 3.22).

Listing 6.9. Prancing Donkey’s shipping cost calculator component
Listing 12.13. Prancing Donkey’s caching interceptor stack defines two interceptors.
<interceptor-stack name="PayloadCacheInterceptors"> <timer-interceptor /> <custom-interceptor class="com.prancingdonkey.interceptor.PayloadCacheInterceptor"> <spring:property name="cache" ref="ehCache" /> </custom-interceptor> </interceptor-stack>