concept behavior in category mule

appears as: behavior, behavior, behaviors
Mule in Action, Second Edition

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

In the XML configuration, it’s recommended to wrap the expression with a hash-square #[] in any attribute where you use an expression (not using #[] works in many places, but the behavior is not consistent enough to be relied on). For example, though the following no-hash-square expression works,

Because there are more than 2500 classes in Mule, this chapter can by no means be an exhaustive tour of all of them; instead, it will give you the necessary pointers you need to approach Mule’s API in an efficient and productive manner. Instead of considering the API as a static resource, we’ll look at it as a gateway to Mule’s live moving parts. You’ll see how Prancing Donkey makes good use of the API to implement behaviors in their applications that couldn’t be implemented by configuration alone. Indeed, as an expert Mule user, Prancing Donkey uses most of the internal API-related features we’ll cover in this chapter, from message interception to notification listening. Learning how they implement such advanced features will give you a better and deeper insight into how things work inside of Mule.

You can use the functional test component in any flow you like. Because it’s preferable to use the same flows in test and deployments, you likely won’t use this component in flows that end up deployed in production. Where this component truly shines is for stubbing out the behavior of external systems that your flows interact with. Let’s see how.