The new Consumer Producer

The new Consumer Producer

We all know the classic Consumer-producer programming exercise. There is even an entire wiki page available for it. In this article, I start out with the classic implementation that is used in the Java land. Although there is nothing wrong with this approach, some issues can arise when using this implementation. What happens if we do not have control over the producer and want him to wait with sending new data to use (Backpressure), Errors during the processing (Fault tolerance)

Read More
Streaming Key Values

Streaming Key Values

This post describes a implementation for streaming a String of space separated Key Values with Java 8. In order to implement a streaming keyvalue reader two simple classes are implemented. One to handle navigation in the string and one to make a Iterable from the String. The implementation I provide is basic but has enough extension points to meet more extensive requirements.

Read More
Maven Artifact graph

Maven Artifact graph

This post is part of a multipart series about creating a graph off all available Maven dependencies.

Read More
Creating a Maven resolver

Creating a Maven resolver

This post is part of a multipart series about creating a graph off all available Maven dependencies.

Read More
Writing a Neo4J extension

Writing a Neo4J extension

This post is part of a multipart series about creating a graph off all available Maven dependencies.

Read More
Code & Comedy @ Ordina

Code & Comedy @ Ordina

Video of code & comedy Recently Casper Koning and myself did a presentation about machine learning and motion sensors titled: Are you doing it the right way.

Read More

Using XML catalogs for your JAX-WS generated code

The latest JAX-WS standards make the implementation of a webservice a breeze. lately i needed to implement a client from which a WSDL is available. That proces is simple, but the client has issues when starting, the WSDL defined in the generated code is not available. In this post i describe a (the) solution to overcome this.

Read More

How to shoot yourself in the foot!

For Java: After importing java.awt.right.foot.* import java.awt.gun.right.hand.* And writing the classes and methods of those classes needed, you’ve forgotten what the hell you’re doing.

Read More

Using JAXB and JAX-WS for service with custom headers

Since the introduction of the JAX-WS in Java EE building SOAP web-services have never been easier (as compared to i.e. Spring WS). Just a few annotations and you are up and running. Disadvantage of this all is that it always goes from a Contract first or Java first approach. While in a lot of environments this is the case, situations are there when its a mixed case.

Read More

Getting_Started with Java ME (2)

In the previous post I started out happy on enrolling with the Embedded course from Oracle. But i got hit in the face for not running a Windows-based development environment. A well installing a VirtualBox is not that hard i thought. To be honest it is once you figured out all the specifics.

Read More

Getting_Started with Java ME

Just recently I showed interest for the oracle class for Java Embedded. Since I always had an interest for hardware and similar things I thought this is an opportunity. Getting the hardware imposed to be a problem. The preferred supplier could not deliver the goods in any reasonable time frame, or at least I was told so by a colleague. But my employer arranged a study group. They even supplied us with the required hardware.

Read More

Java EE Producer for application configuration

Since the introduction of Java CDI container my focus is on building applications without the usage of any Spring libraries. It’s not that I do not like Spring, but since CDI I don’t really need a heavy weight DI container in my application anymore. When looking at EE 7 even more of the stuff that is provided by Spring comes out of the box.

Read More

Using Spring @Cacheable annotations

Today I needed some performance improvements on a application that makes quite a few calls to a database. My default statement is not to implement performance improvements unless there is a issue. Well it just happened.

Read More

is package-private the new private?

Just a few days ago I attended the DEVOXX conference in Belgium. The last session I attended was from Adam Bien’s session Real World Java EE.

Read More

Refactoring is fun, right?

For the umpteenth time I have been asked, do you like refactoring? The answer yes I like doing it.

Read More

Builder pattern with annotations (Part 2)

It took me some time to get all for the annotation builder into central but it’s there. see previous article for details on usage

Read More

Builder pattern with annotations

I Think every body should know their patterns. the GoF created that book a long time ago but still not every body knows them by heart?

Read More

Adding your artifacts to the public maven repo

Ever had a project that you want to share with every body and not want them to get your source code, build and install it public repository?

Read More