April 8th, 2011 |
by akoelewijn |
published in
java, oss, soa
Here’s a simple groovy script to show deployed Apache Camel routes. It uses JMX to query the description of routes available. Here’s an example of the output generated by this script:
March 18th, 2011 |
by akoelewijn |
published in
oss, soa
The following groovy script can be used to list all Camel routes on a running servicemix. Per route it will display state of the route, and some statistics.
February 21st, 2011 |
by akoelewijn |
published in
java, oss
Here’s a quick example how to create a camel route that creates a route from an ActiveMQ topic. It uses a selector to receive a subset of all messages. To test this you should start ActiveMQ in the unit test. The test itself uses a mock endpoint to specify how many messages you expect, and [...]
October 13th, 2010 |
by akoelewijn |
published in
java, soa
Here’s a simple example to get started with Apache Camel and ActiveMq. The following Camel route will log all messages it receives in the EVENTS queue: The following junit test will start a message broker, start camel and then send one message to the queue: You need the following dependencies if you’re using Maven:
October 4th, 2010 |
by akoelewijn |
published in
java, soa
ServiceMix and Camel expose a lot of information through jmx mbeans. You can use jconsole to access this information. Start jconsole and connect to a running servicemix instance. Look for the entry with karaf in the name: In the mbeans tab you’ll find a node for Apache Camel. Here you’ll find all your routes, endpoints, [...]
June 15th, 2010 |
by akoelewijn |
published in
java, oss, soa
Apache ServiceMix 4.2 includes Apache Camel 2.2.0. The following steps outline how you can add Apache Camel 2.3.0 in the same ServiceMix instance. This example uses the versions as released by Progress Fuse. Go to the ServiceMix console, either by starting servicemix, or by ssh-ing into ServiceMix. To install Camel 2.3 we need to add [...]
June 13th, 2010 |
by akoelewijn |
published in
java, oss, soa, web
The following example illustrates how you can implement a composite service using Apache Camel. The service is exposed as a REST resource, and it uses two other resources to collect the data required. The composite service will enable a client to get info on a customer and it’s orders. To get this data the composite [...]
October 27th, 2009 |
by akoelewijn |
published in
oss, soa, web
Here’s a simple file monitoring tool which uses cometd to push file changes to a webpage. The server part consists of a groovy script which uses Apache Camel to monitor some files. It then uses Apache Camel to push the lines added to the files to the browser with Cometd. In the webpage a bit [...]
March 11th, 2009 |
by akoelewijn |
published in
java, oss, soa
I’m still playing around with groovy scripting. It’s an excellent way to quickly prototype some ESB scenarios. Last week i blogged about using groovy to write files to a gtalk account using Apache Camel, the example below shows you how to start an ActiveMQ broker, which persists messages to a PostgreSQL database. An Apache Camel [...]
February 28th, 2009 |
by akoelewijn |
published in
soa
Groovy 1.6 makes it really easy to quickly try out new frameworks. Dependency management build into the language allows you to write simple scripts, all required libraries will be downloaded automatically when you run it. Here’s an example using Apache Camel. This script can simply be run from the command prompt. Groovy will compile it, [...]