Macs in Germany
There's a nice article about Macs in Germany on MacDirectory. Very worth reading (besonders, wenn man aus Deutschland kommt ;-) ). The article addresses many well known issues, especially the price situation (although it keeps getting better), the conservatively marketing of Apple Germany and the fact that not every German drinks beer :-)
Busy days
Nothing new. I was very busy the last days working on a customer project. I had a lot of fun with OS/390, Domino and WebSphere >:-(. Hopefully I will publish my Struts extensions this weekend ...
Minor changes in the backend
Last night I tweaked the RSS generator servlet a little bit. The pubDate field is now formatted correctly and the lastBuilDate contains the right date. This was broken before. While working on my administration interface I realized that I must redesign a part of the API in my Enterprise JavaBean that deals with the creation and updating of weblog entry objects. Currently I create a WeblogEntryTO (transfer object) as follows:
WeblogEntryTO newEntry = weblogService.createWeblogEntry(headline, body); newEntry.setVisible(true); weblogService.updateWeblogEntry(newEntry);The create method currently performs the following steps:
- It creates a new instance of WeblogEntryTOImpl
- It assigns an ID
- It stores the entry in the database via Hibernate
- Adding new attributes to WeblogEntryTO may force a change to the createWeblogEntry signature
- Implementing a preview function is somewhat tricky
WeblogEntryTO newEntry = weblogService.prepareNewEntry();
newEntry.setHeadline("..");
newEntry.setBody("..");
newEntry.setVisible(true);
weblogService.storeEntry(newEntry);
The important thing is that the prepareNewEntry method would not store the entry in the database and it would not assign a real ID but an UNASSIGNED_ID. Since the interface provides no method for chaning the ID the client cannot disorganize the system. When the client invokes storeEntry(...) the storeEntry method will look at the ID and either add a new entry via calling hibernateSession.save() or updating the entry
via hibernateSession.update(). This way it would be easier to implement a preview (and discard if needed) function.
Eclipse 3.0 M1 on OS X noticeable faster!
Today I downloaded Eclipse 3.0 M1 because I wanted to see how Eclipse/SWT is improving on OS X. Long story short: very nice! The performance is much better than the current stable release 2.1. Most parts now feel very smooth on my G4 733. Scrolling large Java files is really fast. I guess I will stick to IDEA for now because personally I think that the workflow in IDEA is still better. But if you are looking for a free Java IDE you might give Eclipse 3.0 M1 a try =)
JBoss/Jetty restart bug on win32 systems acknowledged.
Today I contacted the maintainer of the BadResource.java file about the bug I found. Only a few minutes later my inbox contained an answer. He told me that he read about the bug on the mailinglist and that he has not responded because of lack of time. He will perhaps work on it later this week. If you need a fix by now you may simply remove the toString() method from BadResource.java or you may download my patched jar.