站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

ConnectionHolder (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.jms.connection
Class ConnectionHolder

java.lang.Object
  extended by org.springframework.transaction.support.ResourceHolderSupport
      extended by org.springframework.jms.connection.ConnectionHolder

public class ConnectionHolder
extends ResourceHolderSupport

Connection holder, wrapping a JMS Connection and a JMS Session. JmsTransactionManager binds instances of this class to the thread, for a given JMS ConnectionFactory.

Note: This is an SPI class, not intended to be used by applications.

Since:
1.1
Author:
Juergen Hoeller
See Also:
JmsTransactionManager, JmsTemplate

Constructor Summary
ConnectionHolder(Connection connection, Session session)
          Create a new ConnectionHolder for the given JMS resources.
 
Method Summary
 Connection getConnection()
          Return this holder's JMS Connection.
 Session getSession()
          Return this holder's JMS Session.
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHolder

public ConnectionHolder(Connection connection,
                        Session session)
Create a new ConnectionHolder for the given JMS resources.

Parameters:
connection - the JMS Connection
session - the JMS Session
Method Detail

getConnection

public Connection getConnection()
Return this holder's JMS Connection.


getSession

public Session getSession()
Return this holder's JMS Session.



Copyright (c) 2002-2007 The Spring Framework Project.