Posts Tagged ‘Spring’

JPMorgan’s Tyger project

April 21, 2006 Leave a comment

Tyger is JPMorgan’s open source stack for Java applications. Check out the following article – JPMorgan’s ‘Tyger’ Roars Ahead. Tyger is based Apache+Tomcat, Spring, Maven, and Hibernate or iBatis for RDBMS integration. It’s good to see that the banks take open source seriously.

Categories: Programming Tags: , , , , ,

Hibernate in Action

January 1, 2005 Leave a comment

Finally finished Rod Johnson’s “J2EE Design and Development” afew weeks ago. I’ve plowed through the Hibernate doco and now I’m onto “Hibernate in Action”. I was surprised to find the following inane comment:

Doing away with Java and SQL and starting from scratch isn’t considered elegant.

Perhaps it could be elegant! Though not very practical…

I wasn’t surprised to see non-relational data management poo pooed. But rather than saying “only RDBMS are supported by Hibernate”, we get:

Are the relational data model and (especially) SQL the right choices for peristence in object-oriented application? We answer this question immediately: Yes! There are many reasons why SQL databases dominate the computing industry. Relational database management systems are the only proven data management technology and are almost always a requirement in any Java project.

Probably true if a little overstated. Hibernate certainly take a practical stance to object persistence.

Categories: Programming Tags: , , ,

Misunderstandings about closures

September 15, 2004 Leave a comment

Even the “big names you know” in the Java software development community can make mistakes when it comes to closures.

Gavin King thinks that closures wouldn’t work in Java because of checked exceptions. However, since the use of checked exception is optional you can use “closures” (annonmous inner classes) pretty well if you either don’t use checked exception or alternatively wrap checked exceptions with unchecked exception (like the JDBC template in Spring). I was wondering if it would be possible to have you cake and eat it too on this point with Java 1.5 generics – another poster says it is possible to parameterise on the checked exceptions. I hope that’s true because that’s the best of both worlds – “closures” and checked exceptions – or at least living life without wrapping every last damn checked exception in an unchecked one ;-).

James Strachan commented that closures have made it into C# 2.0. Another poster correctly pointed out that this is just *not* the case. I can understand why you’d thnk that – you really have to read between the lines in those Microsoft articles ;-). With all the good .NET stuff coming out of Microsoft lately I’m surprised they didn’t correct this properly in C# 2.0. I much prefer their implementation of generics – it’s not based on type erasure like in the Java.

Martin Fowler (if you follow the link through to his article) is right on the money. Closures are good. Lisp is good. Ruby is good. Smalltalk is good. You gotta love Martin.

Spring and Hibernate

August 30, 2004 Leave a comment

We’re using Hibernate at work but not Spring yet. We are using WebLogic Web Services and Flash Remoting which potentially make Spring less useful. However, I’m been reading alot about Spring lately and related topics lately:

* Demonstrating Spring’s Finesse
* Persistence In Spring
* Better, Faster, Lighter Programming in .NET and Java
* “Better, Faster, Lighter Java” sample chapters ch00.pdf ch03.pdf ch10.pdf
* still struggling through Expert One-on-One J2EE Design and Development

Looks like “Better, Faster, Lighter Java” would be a good but small book. Probably not necessary if you just use Spring, Hibernate etc. Also, Rod Johnson’s newest book “Expert One-on-One J2EE Development without EJB” could be good but when you already believe it…

Categories: Programming Tags: , , ,