Archive for April, 2008

JAX 2008 review

Last week was the JAX 2008 in Wiesbaden, Germany. In a previous post I wrote about my impressions on the first. Let’s review day two and three: The first day was half exciting/half boring. On my second day I booked the Dynamic Languages Day, what a mistake. Most of the sessions were for newcomers who never heard/programmed about Groovy, Ruby, … The sessions covered syntax, Java integration, and so on, but they only scratched the surface. Most of the information can be found on the Internet. However, one useful session was “Design Patterns in Dynamic Languages”. The speaker Neal Ford was really good and gave good examples which patterns are obsolete in DL’s and how easy some can be implemented. Maybe, I will do later a more detailed post about it. Like I wrote, the rest of the sessions wasn’t to interesting, therefore, I will just skip them. My mood changed on Thursday because of some really good sessions. Continue Reading »

heli's blog heli 29 Apr 2008 No Comments

Netbeans 6.1 has been released

With a little delay Netbeans 6.1 has been released. Most noteable of this version is the huge performance boost. The release notes can be found here. Interesting are the future plans for Netbeans 6.5. It will be all about databases and it seems that Netbeans is becoming more and more a platform for scripting languages (JRuby, Groovy, PHP, …)

heli's blog heli 28 Apr 2008 No Comments

Using Spring/AOP to inject in ‘new’ objects with @Configurable

I am currently working on Web project using Hibernate/Spring for the persistence layer. I decided to use the not the old DTO/DAO. That means the data is encapsulated in POJO’s, the Data Transfer Objects (DTO’s), and Data Access Objects (DAO’s) are used to actually access the database. Typical methods from DAO’s are getXXXById, create, … Ok, so far so good. The next thing I wanted to do, is to use the DAO’s in other objects, let’s call them Commands. Such a command gets some information, makes some checks, and does something. Some of them are checking if an entity already exisits, e.g. if an entity with the same username already exists. Not really a problem until now, but I also want to test the commands, therfore, I need some mocks. In this case I need DAO mocks. So the DAO’s have to be interchangeable while the Commands are created with “new”. Further, I wanted them injected before the constructor runs.

Continue Reading »

heli's blog heli 23 Apr 2008 No Comments

Next Page »