Browsing Category 'apache camel'

For a transformation with Smooks we had to parse the incoming EDI files line per line, to create a valid EDI source. For this we wrote a simple route like this: from("file://src/data/in?delete=true&idempotent=true&readLock=changed&readLockCheckInterval=1500") .marshal().string("UTF-8") .split(body().tokenize("\n")).streaming() .bean(LineParser.class) .to("log:LINEPARSER?groupSize=1000") .to("file://src/data/out?fileExist=Append") .end(); This route reads a file, splits it into line chuncks, each line will be parsed and finally [...]

In my last article I showed, how to use websockets with Apache Camel. Today I will target a very special usecase: process driven forms. That means not your UI (UI Framework) says which site / form comes up next, but your server. This brings us one step closer to very dynamically approaches like e.g. adaptive [...]

Today we (Berthold, Chris and me) developed just for fun a websocket component for Apache Camel. “WebSocket is a technology providing for bi-directional, full-duplex communications channels, over a single Transmission Control Protocol (TCP) socket.” (Wikipedia). In combination with Apache Camel you can push events from all components (file, ftp, hazelcast, queue, etc.) to your browser. [...]

Chris created a tutorial where he shows how you can setup a idempotent repository on a cluster using Apache camel and an OSGi container (Karaf). For this he configured two cluster nodes and deployed a simple Camel bundle on them. Sending duplicated messages randomly to both nodes you can see how only the first unique [...]

The question sounds easy: “How can I get an bean instance with constructor parameters into my message body through the activator EIP using Apache Camel?”. My first thought was something like that: … from("direct://foo") .setBody(bean(new Foo("x", "y"))) .to("seda://bar"); … But this doesn’t work. After trying around a while I found a smart method to do [...]

We have to transform huge EDI files into single data sets (XML). Huge means up to 700K ‘data sets’ which is a file size of 250MB. Each file has a global header and n data groups. Each data group has global (on their) level information as well and n data sets. The file structure looks [...]

Nice article from Martin Huber about collecting statistics of your apache camel application from JMX. I was wondering if (and how) this can be done using the 2.6 JMX component (http://camel.apache.org/jmx.html)… Perhaps I’ll play a litte bit and post the result here. Anyway – thanks to Martin :)

In the posts one and two I showed the problem and how to solve this in camel – we used a idempotent repository based on MongoDB. But Camel doesn’t come with a MongoDB repository class out of the box, so we have to implement it on our own… The first step is easy. We have [...]

In part one of this tutorial I showed the problem with events in a clustered environment from an architecture view. Now we want our hands dirty and implement a solution using Apache Camel and MongoDB. As you know Apache Camel implements the world famous enterprise integration patterns (EIP). The only thing we have to do [...]

In part one of this little tutorial we show from a very high view the problem of handling events in a clustered environment. I was to lazy to write a long text so I’ll tell the story as a little slide show :) events in a clustered environment View more presentations from catify. In part [...]

categories…