FileDocCategorySizeDatePackage
JmsLocalTransaction.javaAPI DocJBoss 4.2.12178Fri Jul 13 21:01:16 BST 2007org.jboss.resource.adapter.jms

JmsLocalTransaction

public class JmsLocalTransaction extends Object implements javax.resource.spi.LocalTransaction
JMS Local transaction
author
Peter Antman .
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
protected JmsManagedConnection
mc
Constructors Summary
public JmsLocalTransaction(JmsManagedConnection mc)

		this.mc = mc;
	
Methods Summary
public voidbegin()

	
public voidcommit()

		try
		{
			if (mc.getSession().getTransacted())
				mc.getSession().commit();
		}
		catch (JMSException e)
		{
			throw new JBossResourceException("Could not commit LocalTransaction", e);
		}
	
public voidrollback()

		try
		{
			if (mc.getSession().getTransacted())
				mc.getSession().rollback();
		}
		catch (JMSException ex)
		{
			throw new JBossResourceException("Could not rollback LocalTransaction", ex);
		}