Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
The Complete Spring Tutorial

The Complete Spring Tutorial



|Views: 5,252|Likes:
Published by api-3701708

More info:

Published by: api-3701708 on Oct 14, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





Spring is grate framework for development of Enterprise grade applications. Spring is alight-weight framework for the development of enterprise-ready applications. Spring can be used to configure declarative transaction management, remote access to your logicusing RMI or web services, mailing facilities and various options in persisting your datato a database. Spring framework can be used in modular fashion, it allows to use in partsand leave the other components which is not required by the application.
Features of Spring Framework:
Transaction Management:
Spring framework provides a generic abstractionlayer for transaction management. This allowing the developer to add the pluggable transaction managers, and making it easy to demarcate transactionswithout dealing with low-level issues. Spring's transaction support is not tied toJ2EE environments and it can be also used in container less environments.
JDBC Exception Handling:
The JDBC abstraction layer of the Spring offers ameaningful exception hierarchy, which simplifies the error handling strategy
Integration with Hibernate, JDO, and iBATIS:
Spring provides bestIntegration services with Hibernate, JDO and iBATIS.
AOP Framework:
Spring is best AOP framework 
MVC Framework:
Spring comes with MVC web application framework, builton core Spring functionality. This framework is highly configurable via strategyinterfaces, and accommodates multiple view technologies like JSP, Velocity,Tiles, iText, and POI. But other frameworks can be easily used instead of SpringMVC Framework..
Spring Architecture
Spring is well-organized architecture consisting of seven modules. Modules in theSpring framework are:1.
Spring AOP
One of the key components of Spring is the
 AOP framework 
. AOP is used inSpring: 
To provide declarative enterprise services, especially as a replacement for EJB declarative services. The most important such service is
declarativetransaction management 
, which builds on Spring's transaction abstraction.
To allow users to implement custom aspects, complementing their use of OOP with AOP2.
Spring ORM
package is related to the database access. It provides integration layersfor popular object-relational mapping APIs, including JDO, Hibernate and iBatis. 
Spring Web
The Spring Web module is part of Spring’s web application development stack,which includes Spring MVC. 4.
Spring DAO
The DAO (Data Access Object) support in Spring is primarily for standardizingthe data access work using the technologies like JDBC, Hibernate or JDO. 5.
Spring Context
This package builds on the beans package to add support for message sources andfor the Observer design pattern, and the ability for application objects to obtainresources using a consistent API. 6.
Spring Web MVC
This is the Module which provides the MVC implementations for the webapplications. 7.
Spring Core
package is the most import component of the Spring Framework.This component provides the Dependency Injection features. The BeanFactory provides a factory pattern which separates the dependencies like initialization,creation and access of the objects from your actual program logic. The following diagram represents the Spring Framework Architecture
Spring is an open-source application framework, introduced and developed in 2004. Themain ideas were suggested by an experienced J2EE architect,
Rod Johnson
.He had earlier, written a book titled '
J2EE Develoment without using EJB'
and hadintroduced the concept of Light-weight container. Primarily, his argument is that whileEJB has its merits, it is not always necessary and suitable in all applications.Just as Hibernate attacks CMP as primitive ORM technology, Spring attacks EJB asunduly complicated and not susceptible to unit-testing. Instead of EJB, Spring suggeststhat we make use of ordinary Java beans, with some slight modifications, to get all thesupposed advantages of EJB environment. Thus, Spring is posed as an alternative to EJBessentially. However, as a concession to the existing EJB investments, Spring is designedto operate with EJB if required.Much of the philosophy and approach of Spring framework, however, predates , the latestEJB vesrion (ie) EJB-3, about to arrive shortly. It is said that EJB-3 has absorbed anumber of new ideas suggested by Spring and some more, to answer the criticisms. Thereis a debate going on in the Java community about Spring and EJB-3. Spring is not a

Activity (52)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Ankit Jain liked this
dabberdan liked this
shankar1220 liked this
bjyo liked this
Minh Nguyen liked this
ram_ghadiyaram liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->