FileDocCategorySizeDatePackage
JBossLocalXAExceptionFormatter.javaAPI DocJBoss 4.2.12962Fri Jul 13 21:01:18 BST 2007org.jboss.resource.connectionmanager

JBossLocalXAExceptionFormatter

public class JBossLocalXAExceptionFormatter extends org.jboss.system.ServiceMBeanSupport implements JBossLocalXAExceptionFormatterMBean, org.jboss.tm.XAExceptionFormatter
JBossLocalXAExceptionFormatter.java
author
Igor Fedorenko.
author
David Jencks
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
private ObjectName
transactionManagerService
Constructors Summary
public JBossLocalXAExceptionFormatter()

   
Methods Summary
public voidformatXAException(javax.transaction.xa.XAException xae, org.jboss.logging.Logger log)

      try
      {
         log.warn("JBoss Local XA wrapper error: ", ((JBossLocalXAException) xae).getCause());
      }
      catch (Exception e)
      {
         log.warn("Problem trying to format XAException: ", e);
      }
   
public javax.management.ObjectNamegetTransactionManagerService()

      return transactionManagerService;
   
public voidsetTransactionManagerService(javax.management.ObjectName transactionManagerService)

      this.transactionManagerService = transactionManagerService;
   
protected voidstartService()

      getServer().invoke(transactionManagerService, "registerXAExceptionFormatter", 
            new Object[] { JBossLocalXAException.class, this }, 
            new String[] { Class.class.getName(), XAExceptionFormatter.class.getName() }
      );
   
protected voidstopService()

      getServer().invoke(transactionManagerService, "unregisterXAExceptionFormatter", 
            new Object[] { JBossLocalXAException.class }, 
            new String[] { Class.class.getName() }
      );