数据源和会话工厂设置好之后,下一步就是在 DAO 中连接,在 CustomerDAOImpl 示例中,要使用 SessionFactory。
With the data source and session factory set up, the next step is to wire in the DAO, in this case CustomerDAOImpl, to use the SessionFactory.
值得一提的是,每个MQ消息传递提供程序连接工厂都有单一的连接池,池中的每个连接都有自已的会话池。
It is worth noting that there is a single connection pool per MQ messaging provider connection factory, and each connection in the pool has its own session pool.
这些设置可以是JMS连接工厂和目的地、jdbc数据源、J2EE安全设置、邮件会话等等。
These Settings can include JMS connection factories and destinations, JDBC data sources, J2EE security Settings, mail sessions, and so on.
应用推荐