...
toptop Anchor
10. Events
The NMR has a rich event API that can be used to receive all sort of notifications about what's happening in the NMR.
Currently, two types of listeners are defined.
EndpointListener
...
...
You can find an example endpoint listener here.
ExchangeListener
...
...
An example exchange listener can be found here.
...
Listeners can be registered in two ways, either directly on the NMR:
...
...
or by registering your listener as an OSGi service. It can be done using Spring-DM using the following configuration (for an exchange listener):
...
...
...