Re: Spring/hibernate and JDBC
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--232016332-2059078827-1311351875=:25933
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT
On Thu, 21 Jul 2011, Arne Vajh?j wrote:
On 7/11/2011 2:25 PM, lewbloch wrote:
I have yet to encounter intelligent use of Spring in a real project.
Eschew Spring.
Spring can be very nice if you only use the original Spring stuff (*).
The problem is if you try to use all the Spring stuff, because a
gazillion relative unrelated stuff got bundled into Spring.
*) Maybe CDI will remove the need for even the original Spring stuff,
but CDI is still pretty new.
True. EJB3 also took a big step into Spring's space. It is different to
Spring in some large ways and some small ways, but it's pretty widely
supported, and is something to consider.
If CDI had been invented several years ago, the world would be a better
place. I recently got involved with a question about using CDI to
configure a JBoss JMX service:
http://stackoverflow.com/q/6723260/116639
And it struck me that the wheel of configuring object instances from has
not only been reinvented a tragic number of times, but it's even been
reinvented several times within a single project or platform, like JBoss
or J2EE. Something like CDI (maybe something a bit bigger - i think you
need a uniform way to use files to drive configuration, alongside
autowiring), done well, could have preempted all those inventions, and
saved a huge amount of time and wailing and gnashing of teeth.
tom
--
What we learn about is not nature itself, but nature exposed to our
methods of questioning. -- Werner Heisenberg
--232016332-2059078827-1311351875=:25933--