|
Sponsored Links
Resources
Enterprise Java Research Library
Get Java white papers, product information, case studies and webcasts
|
News
News
News
|
Messages: 26
Messages: 26
Messages: 26
Printer friendly
Printer friendly
Printer friendly
Post reply
Post reply
Post reply
XML
XML
XML
|
 |
The Essential Introduction to the Spring Framework Updated
Rod Johnson has updated the "Introduction to the Spring Framework" that has been the essential first article to read about Spring, originally posted here on TSS in 2003. The new article re-introduces Spring based on all the recent framework and community evoltion in the last couple of years. A must read for beginners and experts alike.
Read Introduction to the Spring Framework
|
|
Message #170909
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Nice one Rod, well written.
-John-
|
|
Message #170932
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
I had been hearing of spring or the past few months and always wanted to check out what its about. I read the older version of this article yesterday and today i read the new version also. I also got to read Martin Flowlers article on Dependency Injection. Can i get pointers to other material like articles or books which give me a better understanding of Spring? Is there any work that may be called "The Bible of Spring" like Hibernate in action for Hibernate?
|
|
Message #170946
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Pro Spring
I've not read Spring Live or Spring in Action (they are on the todo list), but I can thoroughly recommend Pro Spring.
|
|
Message #170953
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
I've read all books except "Spring Live" and would recommend "Pro Spring" for a detailed introduction and "Spring A Developer's Notebooks" by Tate and Gehtland for a quick jump into Spring. Or you wait for Rod's new book, coming out soon (I hope). Maybe it can be considered as "the bible" :)
|
|
Message #170954
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Nice one Rod, well written.-John- +1.
Great intro to the control and flexibility that spring gives you.
Can I also just point out that the forums on the SpringFramework site are an excellent place to pick stuff up too.
Currently using spring on a number of server side java apps and finding it reducing development time and complexity in many ways.
|
|
Message #170958
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Spring books
I firmly believe that having a strong understanding of concepts and foundation is more valuable than having encyclopedic knowledge of details (if one knows where to look up the details when needed). "J2EE without EJB" is a book that's very good at explaining J2EE architecture and what Spring contributes to improving the architectures of the J2EE systems we build, and thus builds a strong case for Spring and the ideas behind it.
"J2EE without EJB" does not go into detail on every aspect of Spring there is. For this, I've found the free user guide and javadoc (at the spring web-site) sufficient.
cheers, gerald
http://www.gerald-loeffler.net
|
|
Message #170973
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Great intro, but printer friendly version does not work (link to october 2003 version).
|
|
Message #171016
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Philippe, perhaps you had a cache of the old version? I just checked the printer friendly works fine. It is impossible for it to link to the old version since we over-wrote that file with the new one.
Floyd
|
|
Message #171022
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Can I also just point out that the forums on the SpringFramework site are an excellent place to pick stuff up too. Yes -- I'd recommend the forums also, the involvement and contribution of the community there is tremendous. http://forum.springframework.org is one of the few places you can go to get information on just about any application development issue with Spring (from web, to persistence) in almost any environment (from ejb to swing app).
In addition to the forums, the core Spring developers are now offering hands-on training on Spring 1.2 as well. Rod and Rob Harrop are leading a 4-day advanced course in London. Colin and I are leading the course in Atlanta. Information on both events is available at http://www.springframework.com.
Keith
|
|
Message #171064
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
I'm glad so many of you like Pro Spring. Jan and I spent an awful lot of time working on that with help from various members of the Spring team.
I am going to start working on the 2nd edition very soon, so any suggestions for new content or improvements will be welcome. Send any comments to rob.harrop@interface21.com.
Regards,
Rob Harrop Interface21 - Spring from the Source http://www.springframework.com
|
|
Message #171080
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
When Printing From An Article Doesn't Work
When you click on the Printer Friendly option and the article STILL doesn't print well (usually because the right side is chopped off), click on File and then Edit Page in your browser and then print. That <almost always> fixes the problem.
- Dan
|
|
Message #171272
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
That's good news
I am going to start working on the 2nd edition very soon, so any suggestions for new content or improvements will be welcome. Send any comments to rob.harrop@interface21.com.Regards,Rob HarropInterface21 - Spring from the Sourcehttp://www.springframework.com What?!! :) I just received my copy about 2 weeks ago. It's a good book and looking forward to the 2nd edition. I'll definitely send you my comments/suggestions for the upcoming edition.
|
|
Message #171298
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Can anyone who has used Spring for a non-trivial production system disabuse me of:
- it looks like systems can become a config file(s) nightmare
- poor performance is a problem with all the reflection, factories, etc.
|
|
Message #171329
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Can anyone who has used Spring for a non-trivial production system disabuse me of:- it looks like systems can become a config file(s) nightmare- poor performance is a problem with all the reflection, factories, etc. Okay, so all these people use Spring. Oracle dedicated resources to providing Toplink support. Books on Spring are appearing because of Spring's increasing popularity. The originator, Rod Johnson, has been using the core components for years BEFORE Spring.
All of this effort, many releases since version 1, to use a framework that is a configuration nightmare that performs slowly.
Ask yourself...Does it make sense?
|
|
Message #171342
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Can anyone who has used Spring for a non-trivial production system disabuse me of:- it looks like systems can become a config file(s) nightmare- poor performance is a problem with all the reflection, factories, etc. I've been using Spring on the last several projects and I have been very happy with it. One of those projects was a large web app to support genomics research for a major US pharma. We used Struts for the MVC, but we used Spring for configuration, Hibernate session / transaction management, and DAO suport base classes. In our case, most of the "work" that Spring performed was when the ApplicationContext was created during container startup. The lookups to get objects from an initialized context in a running application are trival for singletons (they're cached) and inconsequential for prototypes (meaningless when compared to the overhead of dragging a graph of objects out of the database) Of course, YMMV depending on the initialization requirements of the objects in your ApplicationContext or the complexity of your DB accesses.
I've never used the MVC in production. (though I have built toy apps with it) Struts is still the security blanket of the manager-types. (and now *everyone* has it on their resume)
I must admit that the config files can start to get rather large or numerous, so we started using one of Spring's lesser advertised features-- you don't have to use the config files for everything. Remember, these classes are just java classes that can be constructed, wired up and initialized in Java code. So, for things that we don't expect to change without a formal release, or don't need to get from the context, we sometimes just coded with the classes like you would any other library. That helps keep the size of the config files down, and you always have to option to parameterize the Java code with values from a properties file for things that could change after deployment. We've used this technique to expose POJO services using the Spring remoting support classes to a rich client The rich client (Thinlet provisioned with Java Webstart) also used Spring remoting to talk to the server. This all worked b/c we didn't need to grab an RMI endpoint on the server side from the context-- it just needed to exist before the server application startup concluded.
I think the main thing I like about Spring is that it's just a well thoughtout library that works very well as glue in many different situations. It also seems to be gaining wide acceptance, and everyone seems to be adding "Spring Integration" support to their libraries. So, Spring is starting to look like "a Java USB hub" connected to your application -- just plug in your library of choice and watch it go.
-Ravi
|
|
Message #171400
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Okay, so all these people use Spring All what people?
Oracle dedicated resources to providing Toplink support. Books on Spring are appearing because of Spring's increasing popularity. The originator, Rod Johnson, has been using the core components for years BEFORE Spring. Blah, blah, blah. So all technologies that had dedicated Oracle rsources and had books written about them and was "used" for years by the originator are good/performant, etc?
If you don't want to answer my original question then don't.
|
|
Message #171407
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Some of the people
Okay, so all these people use Spring All what people?Oracle dedicated resources to providing Toplink support. Books on Spring are appearing because of Spring's increasing popularity. The originator, Rod Johnson, has been using the core components for years BEFORE Spring. Blah, blah, blah. So all technologies that had dedicated Oracle rsources and had books written about them and was "used" for years by the originator are good/performant, etc?If you don't want to answer my original question then don't.
http://www.springframework.com/users.html
|
|
Message #171408
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
The Essential Introduction to the Spring Framework Updated
Okay, so all these people use Spring All what people?Oracle dedicated resources to providing Toplink support. Books on Spring are appearing because of Spring's increasing popularity. The originator, Rod Johnson, has been using the core components for years BEFORE Spring. Blah, blah, blah. So all technologies that had dedicated Oracle rsources and had books written about them and was "used" for years by the originator are good/performant, etc?If you don't want to answer my original question then don't.
Sure. It's a dog. The config files are atrocious, but the price is irresistible, so we all ignore that.
After all free pain is still free, right?
|
|
Message #171918
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Springframework.net
It is all been interesting the reading for both articles but I think noone has noticed that a port for this framework is being made to the .NET platform by Mark Pollack. The resources for this port can be found at www.springframework.net.
Although it is in its infancy it can deliver magic to the .NET, and by the way, Rod Johnson advises this project.
I am both interested in J2EE and .NET platforms and I think this gives value to both and to all of us trying to develop the applications of the future.
Thanks
|
|
Message #176432
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Question about the example
Hello,
I found this article very interesting but I was a bit confused about the XmlBeanFactory example. The goal of the Ioc is to externalize relationships between beans. But in the java class, the first attribute is an "ExampleDataAccessObject". It would have been even more apparent with a bean from a different package: "ExampleDataAccessObject" would have been imported. So, the type is hard-coded and the xml configuration file doesn't help a lot. We can just use an "ExampleDataAccessObject" or a sub-class. I think it would have been better to use in the java class an interface.
To resume : 1) relations between interfaces in the code 2) implementation done by IoC
I didn't make a lot of java so perhaps there's something wrong with my reasoning.
|
|
Message #179635
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Errata
It´s not true that Pico does not have xml configuation. It has xml, groovy, java and your own configuration possibility.
|
|
Message #186882
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Problem with XmlBeanFactory example
With this usage, Spring will work out that the dataSource property of exampleBusinessObject should be set to the implementation of DataSource it finds in the present BeanFactory. Shouldn´t this say: "With this usage, Spring will work out that the dataAccessObject property of exampleBusinessObject should be set to the implementation of exampleDataAccessObject it finds in the present BeanFactory."
In the example the exampleBusinessObject does not have a dataSource property, it has a dataAccessObject property
|
|
Message #219018
Post reply
Post reply
Post reply
Go to top
Go to top
Go to top
|
 |
Singleton and Object Orientation
Hi Rod,
You said 2 things about the pattern -
1) Many singletons lead to broblem.
2) The pattern (or use of it many times) does not speak of OO'tion.
It would be nice of you or (in case of lasck of time) someone to elaborate on these points.
Regards, Ammar
|
|
 |
New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com |
 |
 |
Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6.
(November 2, Article)
SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options.
(September 28, Article)
Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team.
(September 22, Article)
Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies.
(July 14, Article)
JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags.
(June 29, Article)
In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project.
(June 23, Tech Talk)
Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now.
(June 15, Tech Talk)
In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements.
(June 15, Tech Talk)
In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls.
(June 4, Tech Talk)
Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable.
(May 28, Tech Talk)
This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work.
(May 26, Tech Talk)
Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers.
(May 21, Tech Talk)
Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application.
(May 19, Article)
In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources.
(May 19, Tech Talk)
Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)
The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)
|
|