Welcome!

Java Authors: Michael Sheehan, Maureen O'Gara, Jonny Defh, Suresh Krishna Madhuvarsu, RealWire News Distribution

Related Topics: Java

Java: Article

Yakov Fain's Java Blog: Spring, Rails and Other Frameworks

Recently I ran into an interesting blog post, where Bob Lee is trying to understand what's so good about Spring Framework

Recently I ran into an interesting blog post, where Bob Lee is trying to understand what’s so good about Spring Framework comparing with  J2EE.  This post has sparkled hot discussions in different online forums as if lots of people where quietly waiting for someone to start bashing Spring.

I  did  not work with Spring on a real-world project, but I like the ideas (implemented in Spring) such as dependency injection, use of AOP, ability to test POJOs, caching, DAO, etc. I’m not sure though why the word “lightweight” is often associated with Spring as well as other frameworks. Is Hibernate so light comparing to EJB? In my opinion, iBatis is lighter than Hibernate and SQL/JDBC combo is lighter than everything else. But for some reason, writing SQL is not a fashionable activity  any longer. These days some Java developers prefer spending most of their time trying to get afloat in a steadily growing  XML code base  of their projects  performing mapping between classes and database tables.
 
But if you think about a Java community as a small model of a real world, with a fierce competition, big and small guys, smart people who are trying to invent new things and make the world a better place to code, it seems that all these multiple Java frameworks and libraries will eventually be swallowed up by one or another  Java or J2EE API.  Is this a bad thing? I do not think so.

Remember the excellent  library of concurrency utilities written by Doug Lea?  This library was tested and polished during its independent phase of life, and now it’s a part of the core Java.  It comfortably resides in  java.util.concurrent package. Log4J was reincarnated in the java.util.loggfing package.  Popularity of XDoclets help in spreading of  Java annotations. Hibernate leads us to EJB 3.0.  AOP will also find it’s place in new EJBs.

Java developers like myself can enjoy the never ending  stream of new ideas, techniques, technologies, etc. Creators of the frameworks are visionaries, luminaries, and  definite leaders of Java community.  Spring, Hibernate, iBatis, Abc, Xyz… will always play an important role in Java evolution, but most  of them eventually will be pushed away  from the enterprise landscape into the  hard-boiling  J2EE pot. 

On the other hand, smaller  businesses will definitely use  various frameworks, but these decisions will be mostly driven be preferences of  local Java architects. 

Another somewhat related hot online discussion was sparkled by the IndicThreads interview with the creator of Rails framework, David Heinemeier Hansson.  As he put it, “Rails is optimized for programmer happiness...” and  “Let Java retire from the spotlight of web applications in dignity...”.  Both statements are way too strong.  I’m sure that Ruby and Rails will increase the level of happiness of some people, but as of today, I'm pretty happy with   Java, and I’m sure it’ll stay this way for quite a long time.  As to Web applications, in my opinion, most of the current Web application written for businesses, should not have been Web applications in the first place. But Java feels at home in this area, and will remain one of the popular means of programming for the Web. 

posted Wednesday, 1 February 2006

More Stories By Yakov Fain

Yakov Fain is a Managing Director of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. SYS-CON Books released his latest co-authored book , Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters in Spring 2007. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. He is an Adobe Certified Flex Instructor. Currently Yakov works on the book for O'Reilly "Enterprise Application Development with Flex". He twits at twitter.com/yfain.

Comments (1) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
SYS-CON Australia News Desk 02/01/06 04:37:37 PM EST

Recently I ran into an interesting blog post, where Bob Lee is trying to understand what's so good about Spring Framework comparing with J2EE. This post has sparkled hot discussions in different online forums as if lots of people where quietly waiting for someone to start bashing Spring.