org.jboss.jms.server.recovery
Class MessagingXAResourceRecovery

java.lang.Object
  extended byorg.jboss.jms.server.recovery.MessagingXAResourceRecovery

public class MessagingXAResourceRecovery
extends java.lang.Object

A XAResourceRecovery instance that can be used to recover any JMS provider. This class will create a new XAConnection/XASession/XAResource on each sweep from the recovery manager. It can probably be optimised to keep the same XAResource between sweeps and only recreate if a problem with the connection to the provider is detected, but considering that typical sweep periods are of the order of 10s of seconds to several minutes, then the extra complexity of the code required for that does not seem to be a good tradeoff.

Version:
$Revision: 1.1 $ $Id$
Author:
Tim Fox

Constructor Summary
MessagingXAResourceRecovery()
           
 
Method Summary
protected  void finalize()
           
 javax.transaction.xa.XAResource getXAResource()
           
 boolean hasMoreResources()
           
 boolean initialise(java.lang.String config)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagingXAResourceRecovery

public MessagingXAResourceRecovery()
Method Detail

initialise

public boolean initialise(java.lang.String config)

hasMoreResources

public boolean hasMoreResources()

getXAResource

public javax.transaction.xa.XAResource getXAResource()

finalize

protected void finalize()


Copyright © 2006 JBoss Inc. All Rights Reserved.