Monday, 30 May 2011

Playing around with nHibernate: the basics

Share
I used Hibernate in a quite a few Java projects. Last week I was asked by my .NET colleagues to show them nHibernate.

I created a series of simple tests showing them some of nHibernate features. Today I publish the first one.

The basics of Hibernate: Session, CRUD operations, and Criteria API.

Tuesday, 24 May 2011

True power of Java EE and JMS: distributed computations!

Share
As you already know I'm writing a PhD about evaluating and measuring quality of Web Services compositions. In my system I focus on evaluating WS-BPEL processes (but the framework I designed is extremely flexible and supports any business scenario technology).

The system (called Measurement System DIES) is a Java EE application. It is designed in a distributed manner which makes scaling out and distributing computations very easy.

Last week, out of pure curiosity, I decided to do stress tests. Apache Geronimo did not survive this nor did the embedded ActiveMQ. After I killed Geronimo and started it again all queues stopped working... I had to install brand new instance of Geronimo.

But thanks to Java EE capabilities and the distributed nature of my system I was able to overcome this problem. See how I did it with JMS and distributed computations!

Monday, 16 May 2011

Java sucks, Groovy and C# rock!

Share
When I was a student a few years ago one of my lecturers told us that Java and C# can be described by an adjective starting with the "M" letter: Java is Mature and C# is Modern.

To be completely frank with you I think that Java should be described by two adjectives starting with "O": old and obsolete.

Note that I have over 6 years of experience in Java. I'm Sun Certified Java Programmer, Sun Certified Developer for Java Web Services and also Java EE and Spring are still my technologies of choice. I'm just talking about the language here...

Despite that Java as a language sucks very much there is one good thing about it. It's the JVM. JVM is efficient, stable, and above all portable. Atop JVM new dynamic languages are developed. Like for example Groovy and Scala. Last year I wrote a post about 21 things I like and don't like about Groovy (compared to vanilla Java) - you may find it here: 21 things I like and don't like about Groovy.

It would be a low blow if I compared Java to C# (it's like comparing a BMW to a Fiat).

Let's try Groovy with C#.