This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Simple Jira Bot
Skip to end of metadata
Go to start of metadata

Simple Jira Bot Example

Available as of Camel 2.7

The example is included in the distribution at examples/camel-example-simplejirabot. It contains a README.txt file with details how to use and run it.

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

Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'
from("rss:" + rssURL).
        transform(body().prepend("Jira: ")).


Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'
  <from uri="rss:;sorter/field=issuekey&amp;sorter/order=DESC&amp;tempMax=1000&amp;delay=10s"/>
  <to uri="log:jirabot?showHeaders=false&amp;showExchangePattern=false&amp;showBodyType=false"/>
  <to uri=""/>

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


To run the Java DSL example type

cd javadsl
mvn camel:run

To run the XML Configuration example type

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. The log should be like this

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

See Also

  • No labels