org.jboss.jms.tx
Class ResourceManagerFactory
java.lang.Object
org.jboss.jms.tx.ResourceManagerFactory
public class ResourceManagerFactory
- extends java.lang.Object
This class manages ResourceManager instances. It ensures there is one instance per instance of
JMS server as specified by the server ID.
This allows different JMS connections to the same JMS server (the underlying resource is the JMS
server) to use the same resource manager.
This means isSameRM() on XAResource returns true, allowing the Transaction manager to join work
in one tx to another thus allowing 1PC optimization which should help performance.
- Version:
- $Revision: 1329 $
$Id: ResourceManagerFactory.java 1329 2006-09-20 21:29:56Z ovidiu.feodorov@jboss.com $
- Author:
- Tim Fox
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static ResourceManagerFactory instance
clear
public void clear()
size
public int size()
containsResourceManager
public boolean containsResourceManager(int serverID)
checkOutResourceManager
public ResourceManager checkOutResourceManager(int serverID)
- Parameters:
serverID
- - server peer ID.
checkInResourceManager
public void checkInResourceManager(int serverID)
handleFailover
public void handleFailover(int oldServerID,
int newServerID)
- Need to failover rm from old server id to new server id, merging resource managers if it
already exists.
dump
public void dump()
Copyright © 2006 JBoss Inc. All Rights Reserved.