Home > Java > JavaBase > body text

Is 'spring provides abstraction of the jms layer' correct?

烟雨青岚
Release: 2020-06-22 10:26:18
Original
11696 people have browsed it

Is 'spring provides abstraction of the jms layer' correct?

Is spring providing the abstraction of the jms layer correct?

spring provides the correct abstraction of the jms layer.

JDBC abstraction and DAO module, using JDBC often results in a lot of repeated code, obtaining the connection, creating statements, processing the result set, and then closing the connection. Spring's JDBC and DAO modules extract this duplicate code so you can keep your database access code clean and concise and prevent problems caused by failures to close database resources.

The Spring framework was created due to the complexity of software development. Spring uses basic JavaBeans to accomplish things that were previously only possible with EJBs. However, Spring's uses are not limited to server-side development. From the perspective of simplicity, testability and loose coupling, most Java applications can use Spring to solve the complexity and functionality of enterprise application development, use basic JavaBeans instead of EJBs, and Provides more enterprise application features and scope for any Java application.

Spring is a lightweight inversion of control (IoC) and aspect-oriented (AOP) container framework.

Is spring provides abstraction of the jms layer correct?

Extended information:

The most basic part of the Spring framework, it provides dependency injection (DependencyInjection) features to implement container Bean management. The most basic concept here is the BeanFactory, which is the core of any Spring application. BeanFactory is an implementation of the factory pattern that uses IoC to separate application configuration and dependency specifications from the actual application code.

Application context (Context) module, the BeanFactory of the core module makes Spring a container, and the context module makes it a framework. This module extends the BeanFactory concept by adding support for internationalized (I18N) messages, event propagation, and validation.

In addition, this module provides many enterprise services, such as email, JNDI access, EJB integration, remote and scheduling services. Also included is support for integration with template frameworks such as Velocity and FreeMarker.

Spring's AOP module, Spring provides rich support for aspect-oriented programming in its AOP module. This module is the basis for implementing aspect programming in Spring applications. In order to ensure the interoperability between Spring and other AOP frameworks, Spring's AOP support is based on the API defined by the AOP Alliance.

The AOP Alliance is an open source project whose goal is to promote the use of AOP and interoperability between different AOP implementations by defining a common set of interfaces and components. You can find out more about the AOP Alliance by visiting their site.

Spring’s AOP module also introduces metadata programming to Spring. Using Spring's metadata support, you can add annotations to your source code to instruct Spring where and how to apply aspect functions.

Recommended tutorial: "

java tutorial

"

The above is the detailed content of Is 'spring provides abstraction of the jms layer' correct?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!