What is covered?

- Publishing notifications
- Receiving notifications from a web page using AJAX
- Creating a custom agent and firing custom notifications from it
- Applying a simple custom security filter to a service

Description

This example demonstrates how to use the notifications in a simple use case. Some basic custom agent and custom security filter usage is also covered. The consumption of the notifications is performed by a simple AJAX-enabled web page.

Under the Hood

- Check the web page that ships with the example and note the inclusion of mule.js library to enable Mule functionality
- Note the <notifications> tag in the mule-config.xml file used to register the events that should be listened
- Check the <management:publish-notifications> tag that manages notification of the three mentioned types will be converted to JSON and sent via the AJAX channel