java - Why does Spring have class JdbcDaoSupport, but no analagous class JmsSupport? -


Why class is required and it is created internally, but there is no rough class JmsSupport which can be needed and can create one?

As I understand, the purpose of the class JdbcDaoSupport is jdbcTemplate (a copy datacours example) in an application context Instead, the container makes an example of an application DAO, each received from JdbcDaoSupport , accepts a unique DataSource and DataSource JDBCodeport provides the basic example on its internal JmsTemplate .

Why does spring give a uniform class JmsSupport which will work to reduce the number of JmsTemplate examples in an application context?

JdbcDaoSupport Comparison of a JdbcTemplate There is a bit more, which also increases DaoSupport . It provides the base implementation of DAO design patterns for JDBC, such as other classes for Hibernate, JPA, and others.

Many people do not use the DAO paradigm; Instead, they define a singleton JdbcTemplate that they inject directly into their service level.

For JMS, as far as I know - there is no general design pattern like DAO, and there is no other possible change on "any user's JmsTemplate ". You should use Singleton JmsTemplate : There is nothing else in it.

Comments