Logo Questions Linux Laravel Mysql Ubuntu Git Menu

How does Spring fit into my application architecture?

I'm currently rebuilding an existing PHP application using Java. I therefore have an existing frontend GUI and an existing database schema that I'm working with.

Here is the technology stack I'm working towards:

  1. jQuery, client-side
  2. Wicket, front-end
  3. Spring, ???
  4. Hibernate, ORM
  5. MySQL, database

Before reading about Spring in both Wicket In Action and the Hibernate documentation, I envisioned wiring the two together through my own business logic. I have experience with JBoss Seam, but am told that Spring is hardly comparable (although the documentation suggests otherwise, IMO). Short of adding a book about Spring to my reading list (I haven't found an appropriate one with good reviews yet), I'm at a loss.

What benefit(s) will Spring provide in this technology stack?

Subjective & optional follow up question: what reference material (book, website, etc) will get me started with the portion of Spring 3 I may utilize?

like image 796
Dolph Avatar asked Jul 07 '10 04:07


People also ask

What architecture does Spring use?

Core Container. The Core Container in Spring Architecture contains the Core, Beans, Context, Expression Language. The Core provides features to fundamental parts of the framework. This includes the Ioc as well the Dependency Injection (DI).

Is Spring an application framework?

The Spring Framework (Spring) is an open-source application framework that provides infrastructure support for developing Java applications. One of the most popular Java Enterprise Edition (Java EE) frameworks, Spring helps developers create high performing applications using plain old Java objects (POJOs).

For what purpose Spring is used?

A spring is an elastic object that stores mechanical energy. Springs are typically made of spring steel. There are many spring designs. In everyday use, the term often refers to coil springs.

1 Answers

First, you can make your web application without Spring. But Spring will greatly facilitate things. Spring framework is a lightweight, non-invasive. Spring is like a kind of conductor. Among other things Spring helps you in:

  1. To keep your objects loosely coupled. This will make your application more flexible and open to future changes

  2. Powerful support for transactions through the AOP (Aspect Oriented Programming).

  3. Object-relational mapping (ORM) integration module. Spring doesn’t attempt to implement its own ORM solution, but does provide hooks into several popular ORM frameworks, including Hibernate, Java Persistence API, Java Data Objects, and iBATIS SQL Maps. Spring’s Transaction management supports each of these ORM frameworks as well as JDBC.

  4. The Spring MVC framework. Even though Spring integrates with several popular MVC frameworks, it also comes with its own very capable MVC framework that promotes Spring’s loosely coupled techniques in the web layer of an application.

A good book about Spring: Pro Spring

like image 140
JLBarros Avatar answered Sep 27 '22 21:09