oracle jvm 1.6u21

As remarked on several places update 21 of 1.6 of the sun oracle jvm doesn’t work well when using lot of perm gem space.
This was caused because oracle changed the vendors name of the jvm to oracle. Because of this eclipse launcher didn’t see it was the sun oracle jvm and didn’t set the –XX:MaxPermSize [...]

Eclipse shortcuts

Just found out really cool eclipse shortcut…
ctrl+3 you can use it to start any eclipse command…
While we are talking about shortCuts:
- ctrl+Shift+L to show all shortcuts
- alt + shift + x or alt + shift + d, t (j or something else) to start running or debugging current test (t) or java (j) app,…
- ctrl+1 [...]

Annotations and reflection: Retention

The other day I tried to perform the following code:

public @interface MyAnn {
String value();
}
@MyAnn(value = “foo”)
public class MyClass {
}
..
MyClass.class.getAnnotation(MyAnn.class).value();

This gave me a NullPointerException because the annotation was not found.
I cursed, I googled, and I felt stupid for a whole day
Later, I figured out it has something to do with retention. [...]

JAXB 2.1 and Jdk 6 problem

Jaxb is part of the jdk since jdk version 6. The earliest versions of the jdk 6 (update 1 till 3) have jaxb 2.0 included. The later versions of jdk 6 make use of jaxb 2.1.
Our pearlchain application makes use of camel which on its turn depends on jaxb version 2.1.  In order to be [...]

NamedQuery annotations on package

In our projects we want to set NamedQuery annotations in customer specific projects. However our entities are placed in our product projects and we don’t want to clutter our product entities with queries which are customer specific.
The only two ways (I know about)  you can add namedquery annotations which will be interpret by hibernate are:

put [...]

Jasper reports integration into the client application

Jasper form has been introduced to add the facility of displaying jasper reports in our UI application.
net.pearlchain.prl.ui.jasperform.JasperForm is a subclass of be.retailability.util.springrich.form.GenericDetailForm and it has following parameters:

printService – This is reference to the print service where JasperPrint is created
reportFileLocation – This is the location of the compiled report at the server side. It defines relevant [...]

Infinispan

Probably the most promising technology I’ve seen on this year’s DevOxx is Infinispan, a highly scalable data grid platform from JBoss.
It’s essentially the next major release of JBoss Cache, but it has a seriously expanded potential, especially if you combine it with the emerging availability of cloud computing.
A possible application will be a distributed data [...]

Apache Camel Type Converters and Spring

Camel allows you to define Type Converters by putting the annotation @Converter at class and converter-method level. You need to define a file META-INF/services/org/apache/camel/TypeConverter, which contains a comma separated list of packages Camel has to scan for Converter classes.
All fine as long as your Converter doesn’t need any dependencies injected. The Camel manual ‘extensively’ describes [...]

Performance and hibernate

I’ve noticed that we are facing more and more performance issues in our application. At this moment there are two main culprits :

Too much data fetched
We’ve had some problems in the past that too much data was sent from server to client. When using@PropertyDescriptor in our application only the needed data is sent from server [...]

Precise dynamic logging with Log4j

Our flagship product, Supply-It, is a planning application that (amonst others) is capable of scheduling the complete workload of production plants. This can results in quite elaborate plannings with numerous production orders.
The logic that caused the planning to be what it is, is often quite complex and it may often be tough to understand [...]