Archive for August, 2008
Making a Java WebApp Return Proper SOAP Fault Responses
In several projects I have been co-developing, we had a webapp as part of the system, which exposed a webservice API as integration end-point to the system. The sole content of that webapp is the webservice, and as such, the web.xml contained only the mount of the webservice servlet (like CXF or Axis) and not [...]
August 29, 2008
Tags: Java, soap, webservice Posted in: Programming
No Comments
Do Not Fear JavaScript, Embrace It
JavaScript is everywhere. And I nearly missed the boat.
I think it started for real with libraries like prototype and script.aculo.us, and then just accellerated from there on into Dojo, MooTools and jQuery. And last, Google published the AJAX Libraries API, to ease loading of JavaScript libraries into your application.
All the cool web applications on the [...]
August 28, 2008
Tags: javascript Posted in: Programming
5 Comments
The Need for java.lang.Thread and java.sql is Gone
At least for the application developer.
Back in the days of Java1, two cool parts of this new platform was the threading apis and the JDBC apis. These APIs have both had immense success. But I think we, as application developers, should forget about them. I know I mostly have.
There are good reasons, that these apis [...]
August 28, 2008
Tags: Java, jdbc, thread Posted in: Design, Programming
14 Comments
Effective Java Second Edition is Also Worth a Read
A long time ago, I read the first Effective Java book by Joshua Bloch, and, as many others, I loved it. Great book! Not long ago, Joshua Bloch finished a revised second edition of Effective Java, and I just finished reading it.
When I ordered the book, I was unsure if it would be a waste [...]
August 27, 2008
Tags: book, review Posted in: Uncategorized
One Comment
Applet Caching and the Control Panel on Linux
The Sun Java applet plugin will cache applets outside the browser cache, in its own cache directory. Clearing the cache in the browser will not clear the applet cache, which can be irritating when you need to be sure, that a fresh copy of a given applet is loaded.
What you need to do, is clear [...]
August 25, 2008
Tags: applet, Java, linux Posted in: Operating Systems
One Comment
Upgrade Maven POM Versions Recursively
More often than not, my projects end up as multi-module maven builds, with a top-level pom.xml in the trunk directory and sub pom.xml files in each module. For big projects, I even end up with more that two levels of POM inheritance. All this adds up to how many pom.xml files the project contains, and [...]
August 24, 2008
Tags: maven, pom Posted in: Tools
3 Comments
JavaFX is Dead, Long Live JavaFX
So, it seems JavaFX isn’t dead yet after all.
Now that Sun has released a preview SDK of JavaFX over at javafx.com, they must be thinking that it is soon ready for the world. I have previously talked about javafx as being forever unfinished, and this was my opinion of it still.
But today, I set out [...]
August 22, 2008
Tags: javafx Posted in: Rich Internet Applications
10 Comments
On Registering Your JDK and Being Honest
I installed a new JDK today on my windows box. A Java6update10-RC. When done installing, the installer opens up a web page at Sun, asking me to “register my jdk”. To justify such registration, Sun lists these 4 areas, where this should benefit me:
Notification of new versions, patches, and updates
Special offers on Sun developer products, [...]
August 22, 2008
Posted in: Uncategorized
5 Comments
System.currentTimeMillis, System.nanoTime and Their Resolution
When reading about Robust Java Benchmarking, I came across some things I had not thought about myself. It turns out, that even though System.currentTimeMillis() has the unit of milliseconds, the precision with which the method can return, is quite different on various operating systems.
Brent Boyer explains that Windows XP has a granularity of 15 ms, [...]
August 10, 2008
Tags: Java Posted in: Programming
6 Comments
Google Guice – Agile Lightweight Dependency Injection Framework
This is a book review post. Apress presented me with the opportunity to review one of their books, and I opted for Google Guice – Agile Lightweight Dependency Injection Framework by Robbie Vanbrabrant, as I could learn something about Guice in the process. And learned something I did.
General Stuff
I read the e-book version (pdf), so [...]
August 6, 2008
Tags: book, guice, review Posted in: Programming
No Comments
