Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

The routes

This example has 1 route implemented in both the Java and XML DSLs as an example. Both route from a RSS endpoint to an IRC endpoint.

Java DSL

Wiki Markup
{snippet:id=e1|lang=java|url=camel/trunk/examples/camel-example-simplejirabot/javadsl/src/main/java/org/apache/camel/example/rss/MyRouteBuilder.java}

XML DSL

Wiki Markup
{snippet:id=e1|lang=java|url=camel/trunk/examples/camel-example-simplejirabot/xmlconf/src/main/resources/META-INF/spring/camel-context.xml}

Information for configuring each endpoint can be found here:
RSS endpoint documentation
IRC endpoint documentation

Usage

To run the Java DSL example type

Code Block

cd javadsl
mvn camel:run

To run the XML Configuration example typeYou can use maven to run the example using

Code Block
cd xmlconf
mvn camel:run

It takes about 10 second before the bot will join the channel and Camel logs to the screen the first time. Its The log should be like this

Code Block

2011-01-03 07:24:43,840 [archRequest.xml] INFO  jirabot                        - Exchange[Body:[CAMEL-2480] Use mock XMPP server for unit tests]

See Also