org.jboss.jms.tx
Class ResourceManagerFactory
java.lang.Object
org.jboss.jms.tx.ResourceManagerFactory
- public class ResourceManagerFactory
- extends java.lang.Object
This class manages instances of ResourceManager. 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
containsResourceManager
public boolean containsResourceManager(java.lang.String serverID)
checkOutResourceManager
public ResourceManager checkOutResourceManager(java.lang.String serverID)
- Parameters:
serverID
- - server peer ID.
checkInResourceManager
public void checkInResourceManager(java.lang.String serverID)
Copyright © 2006 JBoss Inc. All Rights Reserved.