Archive for the ‘Java’ Category

Let’s put Hibernate to sleep ?

Don’t get me wrong, Hibernate is a great tool written by very smart people, but I keep wondering how this technology has become so popular.
Maybe it’s just me, but for the past 3 years now I have not come across one single developer that grasps half of the concepts needed to understand how Hibernate works. [...]

Read more

What is really in the JDK ?

For a while I’ve started counting the number of external JAR’s i’m using in a given project. I usually try to make sure that every one of them is “needed”. Now as a rough statistic, the last 3 projects I worked on had

34 Mb dependencies (cocoon project – lot of XML stuff
30 Mb [...]

Read more

Getting the file owner in Java using JNI

Since i needed this for a project, I thought it was worth a post.
Basically I needed to watch a directory for incoming files and perform a given action based on the owner of the file, in Java.
For the polling part, no problem, but how can I get the owner of a file in Java ? [...]

Read more

AJAX Upload progress monitor for Commons-FileUpload Example

Don’t laugh .. I did not get any comments from my previous post (normal, nobody reads this blog except me ), so I decided to take the time to put together a little sample of a Java AJAX file upload progress bar example.
For people who never used DWR, it can also serve as a [...]

Read more

AJAX Upload progress monitor for Commons-FileUpload

Here is a little addition to the Jakarta File Upload library to allow to monitor the progress of the file upload.
An OutputStreamListener can be used with a MonitoredDiskFileItemFactory. It will be informed of the progress of the HTTP file upload.
To implement a nice AJAX upload progress bar, here is how I did it :

Use DWR [...]

Read more