/* * JBoss, Home of Professional Open Source * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. * See the copyright.txt in the distribution for a * full listing of individual contributors. * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU Lesser General Public License, v. 2.1. * This program is distributed in the hope that it will be useful, but WITHOUT A * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * You should have received a copy of the GNU Lesser General Public License, * v.2.1 along with this distribution; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * * (C) 2005-2006, * @author JBoss Inc. */ /* * Copyright (C) 2004, * * Arjuna Technologies Ltd. * Newcastle upon Tyne, * Tyne and Wear, * UK. * * $Id: TransactionManagerServiceMBean.java,v 1.3 2005/06/17 10:53:51 kconner Exp $ */ package com.arjuna.ats.jbossatx.jta; import org.jboss.tm.JBossXATerminator; import org.jboss.tm.XAExceptionFormatter; import javax.transaction.TransactionManager; import javax.transaction.UserTransaction; import javax.transaction.TransactionSynchronizationRegistry; import java.net.InetAddress; /** * The MBean interface for the TransactionManager JBoss service. * * @author Richard A. Begg (richard.begg@arjuna.com) * @version $Id: TransactionManagerServiceMBean.java,v 1.3 2005/06/17 10:53:51 kconner Exp $ */ public interface TransactionManagerServiceMBean { /** * Retrieve a reference to the JTA transaction manager. * * @return A reference to the JTA transaction manager. */ public TransactionManager getTransactionManager(); /** * Get the XA Terminator * * @return the XA Terminator */ public JBossXATerminator getXATerminator() ; /** * Retrieve a reference to the JTA user transaction manager. * * @return A reference to the JTA user transaction manager. */ public UserTransaction getUserTransaction(); /** * Retrieve a reference to the JTA TransactionSynchronizationRegistry. * * @return a reference to the JTA TransactionSynchronizationRegistry. */ public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry(); /** * This method has been put in here so that it is compatible with the JBoss standard Transaction Manager. * As we do not support exception formatters just display a warning for the moment. */ public void registerXAExceptionFormatter(Class c, XAExceptionFormatter f); /** * This method has been put in here so that it is compatible with the JBoss standard Transaction Manager. * As we do not support exception formatters just display a warning for the moment. */ public void unregisterXAExceptionFormatter(Class c); }