Available in Camel 2.6
The eventadmin component can be used in an OSGi environment to receive OSGi EventAdmin events and process them.
Maven users need to add the following dependency to their pom.xml
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-eventadmin</artifactId>
<version>${camel-version}</version>
</dependency>
|
where ${camel-version} must be replaced by the actual version of Camel (2.6.0 or higher).
eventadmin:topic[?options] |
where topic is the name of the topic to listen too.
|
|
The in message body will be set to the received Event.
<route>
<from uri="eventadmin:*"/>
<to uri="stream:out"/>
</route>
|