Java Reference
In-Depth Information
It is important to note that Spring MVC is not the only way of connecting to the
Spring business tier. It is possible to expose Spring business objects as web services. Simi-
larly, various other remoting options like Spring remoting, Burlap-Hessian, and so on,
can be used to connect to Spring components, making them available as remote compo-
nents. I will explore a few remoting solutions in connection with the integration tier
patterns in Chapter 4.
Integration Tier
The integration tier in most applications interacts with the RDBMS using the JDBC API
through POJO data access objects. The data access objects provide a consistent API for
the business tier objects and wrap the JDBC API. Spring DAO provides templates for sim-
ple and flexible data access objects. The data access objects update relational databases
as well as retrieve data from them. The retrieved data is wrapped in JavaBean objects and
returned to the layers above.
Just like the other two tiers, Spring provides plenty of options even in the integration
tier. Spring ORM allows development teams to easily use an object relational bridge solu-
tion such as Hibernate or TopLink. The integration tier in a Java EE application is not
limited to communicating with relational databases. It can be a requirement to connect
to a mainframe or an ERP or CRM system. Just as with the business tier, here too we can
leverage the Spring JEE module to connect to these systems and applications using stan-
dard technologies such as JCA or web services.
Spring Enterprise Java Design Pattern Directive
In the previous chapter, I have discussed the foundations of Java EE architecture and
design. In the process, I mentioned that best practices in design can be collated as design
directives or design patterns. These provide a common vocabulary to communicate
design ideas among developers and designers. I will now combine the lessons learned
in the previous chapter with those from this chapter to formulate the Spring Java EE
application design pattern directive. This pattern template or directive will be used in the
next four chapters to describe how Java EE design patterns can be best applied using the
Spring Framework.
This is the name used to identify a pattern.
Search WWH ::

Custom Search