Spring Introduction
Spring Introduction
com/SPRING6PM
Mobile No: 7386095600
Spring
—-----
1.Introduction
2.Core Module
3.JDBC Module
4.AOP Module
5.ORM Module
6.TRANSACTIONS Module
7.WEB MVC Module
Introduction
—------------
Enterprise: A group of organizations running under a single
label is called an Enterprise.
1.Web Applications
2.Distributed Applications
Drawbacks:
—---------
1.It is an outdated Architecture, it is providing limited
support for the web application development, it is not
utilized in the present web application’s development.
2.In This Architecture, no separation between Controller
and View components, it will provide tightly coupled
design in the web application development, it is not
suggestible.
3.In this Architecture, we will use a single JSP page as
controller, in web applications controllers must
perform a number of activities like recognition of the
modules, loading modules, preparing configurations for
each and every module and preparing a separate
processor for each and every module,...., to achieve
all these responsibilities the existing features of JSP
technology are not sufficient, where there is a
requirement to write Java code inside the JSP pages, it
is against to the JSP rules and regulations, due to
this reason this architecture is providing in stable
architecture for the web application development.
1.Web Frameworks
2.Application Frameworks
6.Struts and JSF are not having POJO classes, they are
having some other bean components like Form Beans,
Backing Beans,...they are very difficult to prepare and
to manage.
Spring Framework has the POJO classes, they are very
simple to prepare and manage in the applications.
7.Struts and JSF are using only MVC and its co-related
design patterns.
Spring History:
—----------------
Home : Interface1
Author : Rod Jahnson.
Objective : To simplify and Accelerate enterprise
application development.
Initial Versions : 1.x
Latest Version : 5.x, 6.x
Type : Application Framework.
Freeware/Licensed : Freeware and Open source.
Website : www.spring.io
Designed On : J2SE, JDBC API, Servlets API, JSPs
API,...
Spring Modules:
—---------------
Spring 1.x :
Spring 2.x:
Spring 3.x
Spring 4.x:
Spring 5.x
JDBC Module:
If we prepare JDBC applications by using plain JDBC we have
to use the following steps.
3.Create Statement:
Statement st = con.createStatement();
AOP Module:
In general, if we prepare applications by using Object
orientation then we have to provide both business logic and
the services logic in the combined manner, it will provide
tightly coupled design, it will reduce shareability and
reusability.
SessionFactory sf = cfg.buildSessionFactory();
Transaction tx = session.beginTransaction();
Employee emp = new Employee(111, “AAA”, 5000, “Hyd”);
session.save(emp);
Or
session.update(emp);
Or
session.delete(emp);
tx.commit(); or tx.rollback();
sf.close();
Messaging Module:
In Enterprise applications, we may get and send a number of
messages through the mobile messages or Main messages,.....
As per the requirement.