Generate XSD from XML

XMLSpy or Liquid XML Studio are tools you could use for generating an XSD from XML. If you prefer some open source alternative, try Apache XMLBeans. It comes with some useful tools such as inst2xsd. It converts your sample XML to XSD. It comes with some arguments to tweek the generated XSD.
I integrated the inst2xsd [...]

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

Spring tip: reference to a factory bean

Imagine having a factory bean like MethodInvokingFactoryBean or MapFactoryBean (or any factory bean, but I’ll use these two as an example) and you want to call it using getApplicationContext().getBean(”myFactoryBean”).
In case of the MethodInvokingFactoryBean you will get the returnvalue of that method back (which can be “null”, even though getApplicationContext().contains(”myFactoryBean”) returns “true”) . If you’re [...]

Subscribing to the comments feed

If you would like to be notified of the comments written on this blog, then you can subscribe to the comments feed.
This is the URL:
http://javablog.pearlchain.net/wordpress/?feed=comments-rss2

Getting rid of “Personalized Menus and Toolbars”

One of the more annoying things you have to do as a developer is that you have to work with office tools every now and then and they have a default ‘Personalized Menus and Toolbars’ option.
What does this mean?
Whenever you look for a menu-item, it is sometimes ‘hidden’ unless you click on the arrow-marker on [...]

Techblog posts on Pearlchain twitter

From now on, all publication of posts on this blog will automatically generate a tweet on http://twitter.com/PearlChain.
With thanks to the Wordpress plugin Twitter Tools!
Remark: the author can still choose to not publish a tweet by turning “Notify Twitter about this post? ” to “No” for his post.

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

java.lang.InternalError: Can’t connect to X11 window server using ‘:99′ as the value of the DISPLAY variable

Sometimes tests fail on our Hudson server even if they run fine into Eclipse.  This was once again such a case.  We where trying to run a test that makes calls to a graphical shell.  In eclipse they ran just fine but on the hudson server they tried to connect to an X11 server (a [...]

Developer guidelines: assertions

Today we found out that a number of our unit tests were failing on the build server (and rightly so), but not on the developer’s PC.
This was caused by the fact that assertions were not enabled in Eclipse.
To avoid these problems in the future, we now ask everybody to adhere to the following guidelines:

You should [...]