Home » Tag Archives: Apache Camel (page 5)

Tag Archives: Apache Camel

Publish/Subscribe Pattern with Apache Camel

apache-camel-logo

Publish/Subscribe is a simple messaging pattern where a publisher sends messages to a channel without the knowledge of who is going to receive them. Then it is the responsibility of the channel to deliver a copy of the messages to each subscriber. This messaging model enables creation of loosely coupled and scalable systems.             It ...

Read More »

Apache Camel 2.11 released

apache-camel-logo

Last week Apache Camel 2.11 was released. This blog post is a summary of the most noticeable new features and improvements. For a detailed description, see the Camel 2.11 release notes. 1) New components As usual each new release contains a number of new components, contributed by our large user base. Thanks guys. For example there is camel-cmis which allows ...

Read More »

Drools decision tables with Camel and Spring

jboss-drools-logo

As I’ve shown it in my previous post JBoss Drools are a very useful rules engine. The only problem is that creating the rules in the Rule language might be pretty complicated for a non-technical person. That’s why one can provide an easy way for creating business rules – decision tables created in a spreadsheet! In the following example I ...

Read More »

REST with Apache Camel

apache-camel-logo

There are many ways to expose an HTTP endpoint in Camel: jetty, tomcat, servlet, cxfrs and restlet. Two of these components – cxfrs and restlet also support REST semantics just with few lines of code. This simple example demonstrates how to do CRUD operations with camel-restlet and camel-jdbc. The four HTTP verbs execute different operations and map to the following ...

Read More »

Indexing data in Solr from disparate sources using Camel

apache-camel-logo

Apache Solr is ‘the popular, blazing fast open source enterprise search platform’ built on top of Lucene. In order to do a search (and find results) there is the initial requirement of data ingestion usually from disparate sources like content management systems, relational databases, legacy systems, you name it… Then there is also the challenge of keeping the index up ...

Read More »

Apache Camel meets Redis

apache-camel-logo

The Lamborghini of Key-Value stores Camel is the best of bread Integration framework and in this post I’m going to show you how to make it even more powerful by leveraging another great project – Redis. Camel 2.11 is on its way to be released soon with lots of new features, bug fixes and components. Couple of these new components ...

Read More »

Hello Camel: Automatic File Transfer

apache-camel-logo

Apache Camel is described on its main web page (and in the Camel User Guide) as ‘a versatile open-source integration framework based on known Enterprise Integration Patterns.’ The Camel framework is based on the book Enterprise Integration Patterns and provides implementations of the patterns described in that book. I look at a ‘Hello World’ type example of using Camel in ...

Read More »

Camel 2.11 – HTTP proxy routes with url rewriting functionality

apache-camel-logo

In the upcoming Apache Camel 2.11 release I have recently added support for plugging in custom url rewrite implementations to HTTP based routes (http, http4, jetty). This allows people to control the url mappings, when you use Camel to proxy/bridge HTTP routes. For example suppose you need to proxy a legacy HTTP service and plugin a strategy for mapping the ...

Read More »

Apache Camel Cheatsheet

apache-camel-logo

                      Polling an empty directory (and send an empty message with null body) : from('file://temp?sendEmptyMessageWhenIdle=true') Stop a route : .process(new Processor() { public void process(Exchange exchange) throws Exception { getContext().stopRoute('ROUTE_ID'); } }) Access a property of the object in the body : admitting the object has a method named ‘getMydata()’ ...

Read More »

Camel 2.11 – Camel web applications without Spring

apache-camel-logo

As I write this we have just added a new component to the upcoming Apache Camel 2.11, that allow to run web applications with Camel without having to rely on Spring Framework to boostrap Camel. Or any other 3rd party frameworks for that matter. A bit ashamed to say that in the year 2013 we are a bit late to ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.