FileDocCategorySizeDatePackage
TxTimeoutReaderFactory.javaAPI DocJBoss 4.2.12022Fri Jul 13 21:02:30 BST 2007org.jboss.aspects.tx

TxTimeoutReaderFactory

public class TxTimeoutReaderFactory extends Object
Obtains the correct mechanism to get hold of a transaction timeout. Newer versions of JBoss should use the TransactionTimeoutConfiguration interfsce. For older versions we need to access the TxManager directly
author
Kabir Khan
version
$Revision: 1.1 $

Fields Summary
Constructors Summary
Methods Summary
public static TxTimeoutReadergetTxTimeoutReader()

      try
      {
         Class clazz = Class.forName("org.jboss.tm.TransactionTimeoutConfiguration");
         return new TransactionTimeoutConfigurationReader();
      }
      catch (ClassNotFoundException e)
      {
      }

      try
      {
         Class clazz = Class.forName("org.jboss.tm.TxManager");
         return new TxManagerTimeOutReader();
      }
      catch (ClassNotFoundException e)
      {
      }

      return new NullTransactionTimeoutConfigurationReader();