« Spring & Hessian, how cool!

March 31, 2009 • ☕️ 1 min read

I’ve tried today to expose some of our services in our application service layer.

All those classes are simple POJOs, autowired with Spring.

I’ve chosen Hessian for few reasons:

  • I never liked xml, soap, etc…
  • we need web services over http (so no RMI)
  • it’s very fast
  • we might need different type of clients connecting to the application (Hessian apparently supports not only plain old Java but also JavaFX, Flex, almost every decent popular programming language)

Well the modification to the code (I’ve changed a couple of xml files) took less than an hour.

You can find the instructions here, there’s nothing else I can add to that document, it just works.

Many people says that Java is death or will die soon but what Spring gives “to the masses” is still incredibly valuable and I found always very quick to implement a change in the code or make a big redesign of the codebase.

Lately I’ve been impressed by the autowiring features and the java config new stuff.

Have a look, java is perhaps struggling but still not death.