<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4262232281084864898.post3785511418386868659..comments</id><updated>2008-06-25T13:44:49.950-07:00</updated><category term='ruby'/><category term='csrf'/><category term='javascript'/><category term='swing'/><category term='localization'/><category term='gwt'/><category term='maven'/><category term='applet'/><category term='rubyonrails'/><category term='internationalization'/><category term='accessibility'/><category term='css'/><category term='wicket'/><category term='shell'/><category term='ejb3'/><category term='spring'/><category term='windows'/><category term='servlet'/><category term='eclipse'/><category term='localisation'/><category term='archiva'/><category term='branding'/><category term='tapestry'/><category term='scripting'/><category term='hibernate'/><category term='i18n'/><category term='ant'/><category term='suckerfish'/><category term='jsf'/><category term='java'/><category term='php'/><category term='ajax'/><category term='security'/><category term='jstl'/><category term='gui'/><category term='netbeans'/><category term='mvc'/><category term='jquery'/><category term='PostgreSQL'/><category term='ehcache'/><category term='struts'/><category term='jpa'/><category term='onbeforeunload'/><category term='jboss'/><category term='MySql'/><category term='l9n'/><category term='jruby'/><category term='project'/><category term='j2ee'/><category term='json'/><category term='findstr'/><title type='text'>Comments on Java Thoughts: Migration to Spring</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javathoughts.capesugarbird.com/feeds/3785511418386868659/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html'/><author><name>Julian Sinai</name><uri>http://www.blogger.com/profile/06209296951442764412</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4262232281084864898.post-8005969829898646457</id><published>2008-06-25T13:44:00.000-07:00</published><updated>2008-06-25T13:44:00.000-07:00</updated><title type='text'>Eyal, glad I could help!</title><content type='html'>Eyal, glad I could help!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8005969829898646457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8005969829898646457'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html?showComment=1214426640000#c8005969829898646457' title=''/><author><name>Julian Sinai</name><uri>http://www.blogger.com/profile/06209296951442764412</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html' ref='tag:blogger.com,1999:blog-4262232281084864898.post-3785511418386868659' source='http://www.blogger.com/feeds/4262232281084864898/posts/default/3785511418386868659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2013441961'/></entry><entry><id>tag:blogger.com,1999:blog-4262232281084864898.post-4129889762142570713</id><published>2008-06-25T08:54:00.000-07:00</published><updated>2008-06-25T08:54:00.000-07:00</updated><title type='text'>Rod, thanks for the feedback.&lt;br&gt;&lt;br&gt;You are right...</title><content type='html'>Rod, thanks for the feedback.&lt;BR/&gt;&lt;BR/&gt;You are right about swallowing the stack trace--in our production code we don't do that. I oversimplified it for the sake of the example. I've corrected it.&lt;BR/&gt;&lt;BR/&gt;Regarding using Spring's DAO exceptions instead of ours--we specifically didn't because we wanted to change as little of the client code as possible, but as time goes by we can eliminate our own exceptions in favour of Spring's.&lt;BR/&gt;&lt;BR/&gt;Regarding your other comment about Spring 2.5--one thing I neglected to mention is that we are currently restricted to using Spring version 2.0.1.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/4129889762142570713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/4129889762142570713'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html?showComment=1214409240000#c4129889762142570713' title=''/><author><name>jsinai</name><uri>https://me.yahoo.com/jsinai#aa1a8</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html' ref='tag:blogger.com,1999:blog-4262232281084864898.post-3785511418386868659' source='http://www.blogger.com/feeds/4262232281084864898/posts/default/3785511418386868659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1131329739'/></entry><entry><id>tag:blogger.com,1999:blog-4262232281084864898.post-4325027291208168946</id><published>2008-06-25T01:52:00.000-07:00</published><updated>2008-06-25T01:52:00.000-07:00</updated><title type='text'>"For example, we are fine with using XML configura...</title><content type='html'>"For example, we are fine with using XML configuration for dependency injection instead of EJB3-style annotations."&lt;BR/&gt;Spring 2.5 supports EJB style DI annotations. It also offers its own @Autowired annotation which is much more powerful.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/4325027291208168946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/4325027291208168946'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html?showComment=1214383920000#c4325027291208168946' title=''/><author><name>Rod Johnson</name><uri>http://www.blogger.com/profile/16926906023111477203</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html' ref='tag:blogger.com,1999:blog-4262232281084864898.post-3785511418386868659' source='http://www.blogger.com/feeds/4262232281084864898/posts/default/3785511418386868659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1995239543'/></entry><entry><id>tag:blogger.com,1999:blog-4262232281084864898.post-8247314512129865426</id><published>2008-06-25T01:51:00.000-07:00</published><updated>2008-06-25T01:51:00.000-07:00</updated><title type='text'>You can have a lot less code in your Spring DAO--o...</title><content type='html'>You can have a lot less code in your Spring DAO--only one line per method, in fact.&lt;BR/&gt;&lt;BR/&gt;- Consider whether you want to have your own DAO exceptions, or use Spring's automatic exception translation to Spring's DAO exception hierarchy. Application-specific exceptions are usually unnecessary&lt;BR/&gt;- That will also eliminate the need for the try/catch block.&lt;BR/&gt;- You also don't need to use HibernateTemplate any more--check out recent Spring examples&lt;BR/&gt;&lt;BR/&gt;Btw you should not catch (Exception) in general, and you should be careful to preserve the stack trace, not just the message, when wrapping an exception.&lt;BR/&gt;&lt;BR/&gt;Rgds&lt;BR/&gt;Rod Johnson</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8247314512129865426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8247314512129865426'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html?showComment=1214383860000#c8247314512129865426' title=''/><author><name>Rod Johnson</name><uri>http://www.blogger.com/profile/16926906023111477203</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html' ref='tag:blogger.com,1999:blog-4262232281084864898.post-3785511418386868659' source='http://www.blogger.com/feeds/4262232281084864898/posts/default/3785511418386868659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1995239543'/></entry><entry><id>tag:blogger.com,1999:blog-4262232281084864898.post-8642571517518557653</id><published>2008-06-25T00:02:00.000-07:00</published><updated>2008-06-25T00:02:00.000-07:00</updated><title type='text'>Hi,&lt;br&gt;Thanks for an interesting article.&lt;br&gt;I am ...</title><content type='html'>Hi,&lt;BR/&gt;Thanks for an interesting article.&lt;BR/&gt;I am not a Spring / Hibernate developer.&lt;BR/&gt;I'm a more user of these frameworks in our application.&lt;BR/&gt;This was very helpful as I am going to get interviewed for a position to build from scratch the back end of an NMS app.&lt;BR/&gt;This article really helped me prepare myself :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8642571517518557653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4262232281084864898/3785511418386868659/comments/default/8642571517518557653'/><link rel='alternate' type='text/html' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html?showComment=1214377320000#c8642571517518557653' title=''/><author><name>Eyal</name><uri>http://www.blogger.com/profile/02894268033436172462</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://javathoughts.capesugarbird.com/2008/06/migration-to-spring.html' ref='tag:blogger.com,1999:blog-4262232281084864898.post-3785511418386868659' source='http://www.blogger.com/feeds/4262232281084864898/posts/default/3785511418386868659' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1938063303'/></entry></feed>
