Hi Mike,

the NMR provide an Event API.

The Event API could listen on an endpoint or on an exchange and call a method.

Basically, an event listener is a POJO which implements EndpointListener or ExchangeListener interface (depending of the kind of listener that you want).

You register these POJOs as OSGi service, using Blueprint for instance:

<bean id="myListener" class=""/>

<service ref="myListener" interface="org.apache.servicemix.nmr.api.event.ExchangeListener"/>

You can take a look on:
https://cwiki.apache.org/SMX4NMR/10-events.html

Regards
JB

On 03/15/2011 04:55 PM, Michael Dewitte wrote:
Hi,

quite new to this kind of stuff with ServiceMix... Let's say that we want to
be able to publish some business events for whatever would be listening.
Does the NMR provide specific support to this ? Or something else ? Or do I
have to write my own stuff based on let's say WS-Eventing or even a JMS
topic ?

Sorry this is a vast question but even pointers would be welcome...  it's
sometimes hard to find recent doc (thanks to the people currently updating
it, I know it's hard and sometimes annoying work !)

I only found references to this in the global overview of ServiceMix (in
some EDA paragraphs)....

Thanks for any help,

Mike

Reply via email to