Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

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

Code Block
xml
xml
*

The {{eventadmin}} component can be used in an OSGi environment to receive OSGi EventAdmin events and process them. 

h3. Dependencies
Maven users need to add the following dependency to their {{pom.xml}}
{code:xml}
<dependency>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-eventadmin</artifactId>
  <version>${camel-version}</version>
</dependency>
{code}
where {{$\

where ${camel-version

...

}

...

must

...

be

...

replaced

...

by

...

the

...

actual

...

version

...

of

...

Camel

...

(2.6.0

...

or

...

higher).

URI format

Code Block
xml
xml
 

h3. URI format
{code:xml}
eventadmin:topic[?options]
{code}
where {{topic}} is the name of the topic 

where topic is the name of the topic to listen too.

URI options

Wiki Markup
to listen too.

h3. URI options

{div:class=confluenceTableSmall}
|| Name || Default value || Description ||
| {{send}} | {{false}} | Whether to use 'send' or 'synchronous' deliver. Default false (async delivery) |
{div}

h3. 

Message headers

Wiki Markup
 headers

{div:class=confluenceTableSmall}
||Name||Type||Message ||Description||
{div}

h3. 

Message

...

body

...

The

...

in

...

message

...

body

...

will

...

be

...

set

...

to

...

the

...

received

...

Event.

...

Example

...

usage

Code Block
xml
xml

{code:xml}
<route>
    <from uri="eventadmin:*"/>
    <to uri="stream:out"/>
</route>
{code}