org.springframework.jms.connection
Class ConnectionHolder

java.lang.Object
  extended byorg.springframework.transaction.support.ResourceHolderSupport
      extended byorg.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)
           
 
Method Summary
 Connection getConnection()
           
 Session getSession()
           
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, released, requested, 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)
Method Detail

getConnection

public Connection getConnection()

getSession

public Session getSession()


Copyright (C) 2003-2004 The Spring Framework Project.