blog

Ever wanted (or needed) to monitor an application that runs on another server with VisualVM? Well, if so, you might have stumbled across jstatd. The service basically allows you to connect to a jvm from other machines. It has its pitfalls, though. Although we followed different tutorials on this topic, we could not manage to [...]

Hiranya Jayathilaka from WSO2 wrote a nice article about garbage collection. A lot of text but worth to read. Thanks Hiranya.

I found tons of tutorials how to create bidirectional dependencies with JPA and annotations – but non if you want to use orm.xml (If you know a good one please drop a link below :). But why should someone use a xml file for the object relational mapping if you can use annotations? One simple [...]

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 [...]

If you want to test your applications in a realistic environment you may come to the point where you want to setup a bunch of virtual machines to do the job. You can now setup each machine one by one (which has become a quiet fast task these days), but these machines will have great [...]

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 [...]

categories…