<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mbean PUBLIC
   "-//JBoss//DTD JBOSS XMBEAN 1.1//EN"
   "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd">

<!-- $Id: TransactionManagerService-xmbean.xml,v 1.1.2.2 2003/11/15 17:05:18 pilhuhn Exp $ -->
<mbean>
	 <description>TransactionManager Service.</description>
	 <class>org.jboss.tm.TransactionManagerService</class>
	 &defattr;
	 <attribute access="read-write" getMethod="getTransactionTimeout" setMethod="setTransactionTimeout">
	 	<description>The transaction timeout in seconds</description>
	 	<name>TransactionTimeout</name>
	 	<type>int</type>
	 </attribute>
	 <attribute access="read-write" getMethod="getXidFactory" setMethod="setXidFactory">
	 	<description>Name of the xidFactory</description>
	 	<name>XidFactory</name>
	 	<type>javax.management.ObjectName</type>
	 </attribute>
	 <attribute access="read-only" getMethod="getTransactionManager">
	 	<description>Returns the TransactionManager managed by this service</description>
	 	<name>TransactionManager</name>
	 	<type>javax.transaction.TransactionManager</type>
	 </attribute>
	 <attribute access="read-only" getMethod="getTransactionCount">
	 	<description>Counts the number of active transactions</description>
	 	<name>TransactionCount</name>
	 	<type>long</type>
	 </attribute>
	 <attribute access="read-only" getMethod="getCommitCount">
	 	<description>Counts the number of commited transactions</description>
	 	<name>CommitCount</name>
	 	<type>long</type>
	 </attribute>
	 <attribute access="read-only" getMethod="getRollbackCount">
	 	<description>Counts the number of transactions that have been rolled back</description>
	 	<name>RollbackCount</name>
	 	<type>long</type>
	 </attribute>
	 	
	 <operation>
		 <description>Register a XAException Formatter</description>
		 <name>registerXAExceptionFormatter</name>
		 <parameter>
			 <description>The class of the formatter</description>
			 <name>clazz</name>
			 <type>java.lang.Class</type>
		 </parameter>
		 <parameter>
			 <description>A XAExceptionFromatter value</description>
			 <name>formatter</name>
			 <type>org.jboss.tm.XAExceptionFormatter</type>
		 </parameter>		 
		 <return-type>void</return-type>
	 </operation>
	 <operation>
		 <description>Unregister a XAException Formatter</description>
		 <name>unregisterXAExceptionFormatter</name>
		 <parameter>
			 <description>The class of the formatter</description>
			 <name>clazz</name>
			 <type>java.lang.Class</type>
		 </parameter>
		 <return-type>void</return-type>
	 </operation>

	 &defops;   			
 </mbean>