Show Table of Contents
Chapter 39. EventAdmin
EventAdmin component
Available in Camel 2.6
The
eventadmin component can be used in an OSGi environment to receive OSGi EventAdmin events and process them.
Dependencies
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).
URI format
eventadmin:topic[?options]
where
topic is the name of the topic to listen too.
URI options
| Name | Default value | Description |
|---|---|---|
send
|
false
|
Whether to use 'send' or 'synchronous' deliver. Default false (async delivery) |
Message headers
| Name | Type | Message | Description |
|---|
Message body
The
in message body will be set to the received Event.
Example usage
<route>
<from uri="eventadmin:*"/>
<to uri="stream:out"/>
</route>
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.