org.hornetq.jms.server.recovery
Class HornetQXAResourceRecovery

java.lang.Object
  extended by org.hornetq.jms.server.recovery.HornetQXAResourceRecovery
All Implemented Interfaces:
com.arjuna.ats.jta.recovery.XAResourceRecovery

public class HornetQXAResourceRecovery
extends Object
implements com.arjuna.ats.jta.recovery.XAResourceRecovery

A XAResourceRecovery instance that can be used to recover any JMS provider. In reality only recover,rollback and commit will be called but we still need to be implement all methods just in case. to enable this add the following to the jbossts-properties file you'll need something like this if the HornetQ Server is remote --> you'll need something like this if the HornetQ Server is remote and has failover configured--> -->

Version:
$Revision: 1.1 $
Author:
Tim Fox, Andy Taylor

Nested Class Summary
static class HornetQXAResourceRecovery.ConfigParser
           
 
Constructor Summary
HornetQXAResourceRecovery()
           
 
Method Summary
protected  void finalize()
           
 XAResource getXAResource()
           
 XAResource[] getXAResources()
           
 boolean hasMoreResources()
           
 boolean initialise(String config)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HornetQXAResourceRecovery

public HornetQXAResourceRecovery()
Method Detail

initialise

public boolean initialise(String config)
Specified by:
initialise in interface com.arjuna.ats.jta.recovery.XAResourceRecovery

hasMoreResources

public boolean hasMoreResources()
Specified by:
hasMoreResources in interface com.arjuna.ats.jta.recovery.XAResourceRecovery

getXAResource

public XAResource getXAResource()
Specified by:
getXAResource in interface com.arjuna.ats.jta.recovery.XAResourceRecovery

getXAResources

public XAResource[] getXAResources()

finalize

protected void finalize()
Overrides:
finalize in class Object


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.