org.activemq.store.jdbc
Class TransactionContext

java.lang.Object
  extended by org.activemq.store.jdbc.TransactionContext

public class TransactionContext
extends Object

Helps keep track of the current transaction/JDBC connection.

Version:
$Revision: 1.1 $

Constructor Summary
TransactionContext()
           
 
Method Summary
static Connection peekConnection()
           
static Connection popConnection()
          Pops off the current Connection from the stack
static void pushConnection(Connection connection)
          Sets the current transaction, possibly including nesting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionContext

public TransactionContext()
Method Detail

popConnection

public static Connection popConnection()
Pops off the current Connection from the stack


pushConnection

public static void pushConnection(Connection connection)
Sets the current transaction, possibly including nesting


peekConnection

public static Connection peekConnection()
Returns:
the current thread local connection that is associated with the JMS transaction or null if there is no transaction in progress.


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.