A BPEL process without using vendor specific extensions should run everywhere without much hassle. But unfortunately it doesn’t. In this article I will show you how to create a BPEL process with Netbeans and what changes you have to make to make it run on Apache ODE.
Jeroen van Wilgenburg
Mapping composite primary keys in JPA How to work around a bug in Hibernate Annotations
A table without single-column primary key, Java developers don’t like them because it’s more work than just putting @Id on a field. When you’re using Hibernate Annotations you might also run into an annoying bug. In this article I will explain how to map a composite primary key with JPA-annotations […]
Wicket – It can do Ajax without writing any line of Javascript!
Wicket is around for a while, but lately it is getting more and more attention. A few years ago I attended a presentation about Wicket. It looked like a nice framework, but at that time I didn’t see much differences with Tapestry and put it on my list of nice […]
Using SoapUI on Apache ODE to test your BPEL processes more quickly
On the SOA-training I’m following we’re using the Oracle SOA Suite, a very nice product, but the time needed between saving changes and deploying the process takes way too long. I also want to know exactly what’s happening and have control over the external web services. In this blog I […]
Opening and extracting Zip files in java – It’s there for a while, but I just found out
A while ago I found out that it was possible to open Zip files with Java. Just open a regular java.io.File and pass it to the java.util.zip.ZipFile constructor. It is possible for a long time (at least since version 1.3), but I didn’t expect this kind of functionality in an […]
Compile and invoke your webservice client (generated by XFire) in a running JVM
Generating XFire client files isn’t that special, but with Java 6 it is possible to compile those files immediately and invoke the webservice within one application. When I told this idea to a colleague he was a bit worried, because there are tools out there that can do this for […]
Battle of the Geeks 2007 – An eyewitness report
Yesterday I attended the Battle of the Geeks. It was hosted by Finalist at the Netherlands Architecture Institute in Rotterdam. There were four presentations about different subjects. CMS Container, Google Guice, Gruby on Grails and Mule. A former colleague of mine (Peter Maas) was giving the presentation about Groovy and […]
How to Unit-test private methods
I know it’s kind of wrong to test private methods and there are a lot of articles and books that will explain you why. But sometimes you have an old code base where you have to unit-test some private methods to speed up development time. Today I got such a […]
Minify all your JavaScript and Stylsheets automatically with YUI Compressor and a Servlet Filter
In this article I will explain how to minify all your .js and .css files automatically with a servlet filter. This means you only have to define a servlet filter in your web.xml and everything works! In the project I’m currently working on we have some pretty large JavaScripts and […]
A quick introduction to the jQuery tablesorter plugin
A few days ago version 2.0 of the tablesorter plugin was released. Before 2.0 the tablesorter worked fine but I never did anything with it. Today I thought it was time to see whether this was a good solution for the table sorting we need. In this article I will […]
How to fix your number-sorting problems in Javascript
Did you ever wanted to sort [1, 10, null, 20] in Javascript and were the results unpredictable? It’s not a bug, but more something that’s not implemented. I came across this problem when testing some table sorting plugins for Dojo and jQuery. First I thought it were bugs, but the […]
Getting started with JPA mapping : How IntelliJ can map your data with a few clicks
With JPA, there finally is an ORM standard and every major IDE has support for it. Today I will show you how to map your data with IntelliJ IDEA. I also use the brand new TopLink 11g preview (a JPA implementation), but you can try this at home with every […]
Do you really know how for-loops work? How to speed up your for loops
Did you know that the second parameter of a three parameter for loop gets executed on every loop? When this parameter is an expensive operation this could slow down your application. Of course I knew the second parameter gets executed every time, but I didn’t realize what kind of impact […]
Getting started with Eclipse 3.3 WTP 2.0 and JSF – will this JSF editor beat JDeveloper?
A few days ago a brand new Eclipse release popped up in my RSS reader. Eclipse 3.3 with WTP 2.0. After browsing through the new features I was very surprised that it included a brand new JSF editor. I thought this sub-project died very slow and painful. What I will […]
Using the javax.xml.bind annotations to convert Java objects to XML and XSD
Did you know that when you put the @XmlRootElement annotation on any class you can have an XML representation of that class? When I first saw Java 6 I didn’t get very excited by it, but I have found out some nice things (scripting and Derby for example). This article […]
Getting started with Derby – The java database bundled with Java 6
I often need a database to perform some quick tests. I usually start my Oracle instance. This takes some time and for most things it’s overkill. So a database that starts up quickly and is easy to use and install was on my wish list. Derby is very easy to […]
A quick look at Guice A dependency injection framework by Google
About a month ago I read an entry on Dion Almaer’s blog about Google Guice. On the blog is a link to a video of a google tech talk about guice. I finally watched the video today. A few days before that blog entry an old colleague of mine told […]
Changing the colors of a bar chart in JFreeChart – Does it really have to be this much work?
The default colors of the first two bars in a bar chart are red and blue. We created a chart for a customer, but he wanted red and green bars. Changing that color takes about five minutes, I thought. But when I tried it, it took me way more time. […]
Java Platform Debugger Architecture (JPDA) with Tomcat, OC4J, Eclipse, IntelliJ IDEA and JDeveloper
With JPDA it is possible to propagate changes to compiled classes to the server immediately. This is very handy when you’re debugging your class files. With some older applications you have to restart your application server many times to make changes. With JPDA this is history. In this article I […]
Image Concatenation to limit http requests is it a solution?
After reading an article about image concatenation on Ajaxian I tried it myself, but soon I came across some obstacles. Of course one of these obstacles was the limp dinosaur called Internet Explorer 6. Image concatenation can be useful, but the drawbacks are really something to keep in mind.
Unit testing Javascripts in Java 6 – Getting started with the javax.script api
I intended to reduce the things I do with Javascript. But maybe Javascript isn’t that bad when you can run it inside java. I’m still working on a very ‘interesting’ project with asp and Javascript files. Since I didn’t create a single JUnit for two weeks I thought it was […]
Why you should never ever copy code – An example of complete chaos
It seems innocent, a few lines of code used twice in the same application. But before you know know it those lines appear 272 times in your application! You guessed it right and you’re probably wondering how could that happen. I’ll try to explain what happened and how to prevent […]
Using the Spring DataBinder to map Strings to objects
The Spring DataBinder is not only useful to bind request parameters, you can also use the DataBinder on other parameters, like command line arguments, JSON objects coming from an Ajax request and query results from a database. Most people probably don’t know what happens when the SimpleFormController maps the input […]
How to programmatically add a CDATA section to an XML document (with the internal Xerces)
This problem probably sounds very easy and it is actually very easy, but it took me so long to figure this out I think it’s worth a blog. I’ll also explain how to generate and output xml documents with Xerces (bundled with Java) While working on a project with Oracle […]
Firebug 1.0 is final
The best thing after sliced bread has reached a new milestone, version 1.0. Firebug is a great tool for HTML, DOM and especially Javascript. A lot of people from AMIS saw my demonstration on the last academy and most of them were quite surprised by its possibilities. Together with the […]
Using jQuery, the jQuery Form plugin and Stripes to create pretty Javascript and Java
I recently discovered jQuery, it a blazingly fast Javascript-framework and has a very compact notation. Now some guy made a plugin to submit plain html forms with Ajax and jQuery. Just add some Javascript that says you want to submit the form via Ajax and you don’t have to touch […]
Unit testing with XFire – How to test your SOAP server with a WSDL file
XFire is a java SOAP framework. Of course there is Axis, but I think XFire can replace Axis. Axis is quite a good framework, but I think XFire is easier to use and performs better. We needed to provide a WSDL file to one of our customers, that customer would […]
Getting started with Lucene 2.0 A powerful java search engine
Lucene is a text search engine written in Java. It’s very easy to use (for both developers and users) and fast. The creator of Lucene (Doug Cutting) started with Lucene in 1997 and still Lucene is a big player with Java searching. This also means that it is highly unlikely […]
Mastering EJB3.0 – Free PDF Book Download
Theserverside is offering a free copy of Mastering EJB3.0. Published in July 2006, the best selling book Mastering EJB is now in its fourth edition and has been updated for EJB 3.0. This edition features chapters on session beans and message-driven beans, EJB-Java EE integration and advanced persistence concepts. In-depth […]
Using Lucene with Spring Introduction to Spring Modules
While preparing a Lucene presentation and workshop I came across Spring Modules. It’s a small set of libraries that does things the Spring-way. It isn’t included in Spring because it doesn’t belong to the ‘core-business’ of Spring. I’m not writing about the possibilities of Spring Modules, I’ll only focus on […]
Modify Spring Beans and Log4j levels on a running server with JMX and JConsole
JMX (Java Management Extensions) is around for quite a while. But since Java 1.5 the JDK is bundled with JConsole, a JMX client, which will hopefully boost the popularity of JMX. It’s a bit hard to explain what JMX is in a few words so I quoted Sun: “Java Management […]
Verslag van JSpring 2006
JSpring vond net als JFall van afgelopen jaar weer plaats in de Reehorst in Ede, een mooie locatie en vooral goed bereikbaar met de auto. Er stonden weer diverse bedrijven met een stand en probeerden op allerlei manieren op te vallen. AMIS had een racebaan uitgezet waar je met kleine […]
Printf and scanf in java new String formatting features in Java 1.5
printf is probably the best known function in C. I did some programming in C and I didn’t really like it (because I started with C after quite some experience in Java). But one thing was better than Java, the printf function. The printf function replaces tokens that start with […]
ADF Faces for MyFaces is now called Trinidad
Earlier this year Oracle donated their JSF UI components from ADF Faces to the Apache Software Foundation. Since ADF is more than a set of UI components it was decided to rename the donation to “Trinidadâ€. The name Trinidad was chosen because it matches with the other JSF subproject called […]
Installing Oracle XE under Debian/(K)Ubuntu is easier than Windows
Yesterday I installed Oracle XE at my Ubuntu Linux server at home. I wanted to do this for a long time but was a bit scared because installing non open source applications under Linux can be really painful. I searched on google and found a tutorial on OTN. That’s a […]
Pitfalls in Internet Explorer “ How to cover them up or walk around them
I recently had to do a lot of Javascript and CSS scripting for a project. I have some experience with Javascript and CSS and know how to work around little quirks in Internet Explorer and FireFox. But now I had to do advanced things (manipulating the DOM-tree, AJAX, layouts that […]
Advanced Javascript debugging with FireBug and analyzing your page with View Source Chart
FireBug is a debug tool that integrates with FireFox. You can change the DOM-tree, do logging, analyze AJAX-traffic, have advanced error reporting and probably some things I haven’t found out yet. I’m using it for a few days and I really love it. Debugging Javascript the old way is like […]
AJAX validation with Spring without changing any java-code
Writing your own Eclipse plugin: How to show the blog headlines in Eclipse
Writing a plugin for Eclipse sounds scary and difficult. A few years ago I had to do a project with some other students for school. The project was writing an application that works as a plugin in Eclipse. It was terrible, no documentation about creating the plugin, the javadoc didn’t […]
Resizing images in Java using Java2D
Last friday a customer asked us if we knew how to resize images in java. Their clients are uploading images that need to be resized automatically. In the past I did some things with Java 2D and knew there was a lot possible with Java 2D. So I started to […]