FileDocCategorySizeDatePackage
NoTxResourceManagerImpl.javaAPI DocGlassfish v2 API5440Fri May 04 22:35:14 BST 2007com.sun.enterprise.resource

NoTxResourceManagerImpl

public class NoTxResourceManagerImpl extends Object implements ResourceManager
Resource Manager for a resource request from a component that is not to be associated with a transaction.
author
Aditya Gore

Fields Summary
private static Logger
_logger
Constructors Summary
Methods Summary
public voiddelistResource(ResourceHandle resource, int xaresFlag)
delist the ResourceHandle from the transaction This implementation of the method is expected to be a no-op

param
resource ResourceHandle object
param
xaresFlag flag indicating transaction success. This can be XAResource.TMSUCCESS or XAResource.TMFAIL
exception
PoolingException

        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("NoTxResourceManagerImpl :: delistResource called");
        }
    
public voidenlistResource(ResourceHandle h)
Enlist the ResourceHandle in the transaction This implementation of the method is expected to be a no-op

param
h ResourceHandle object
exception
PoolingException

        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("NoTxResourceManagerImpl :: enlistResource called");
        }
    
public java.lang.ObjectgetComponent()
Returns the component invoking resource request.

return
Handle to the component

	return null;
    
public javax.transaction.TransactiongetTransaction()
Returns null since this connection is outside any tx context

exception
PoolingException

        _logger = LogDomains.getLogger(LogDomains.RSR_LOGGER);
    
        return null;
    
public voidregisterResource(ResourceHandle handle)
Register the ResourceHandle in the transaction This implementation of the method is expected to be a no-op

param
handle ResourceHandle object
exception
PoolingException

        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("NoTxResourceManagerImpl :: registerResource called");
        }
    
public voidrollBackTransaction()
Get's the component's transaction and marks it for rolling back. This implementation of the method is expected to be a no-op

        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("rollBackTransaction called in NoTxResourceManagerImpl");
        }
    
public voidunregisterResource(ResourceHandle resource, int xaresFlag)
Unregister the ResourceHandle from the transaction This implementation of the method is expected to be a no-op

param
resource ResourceHandle object
param
xaresFlag flag indicating transaction success. This can be XAResource.TMSUCCESS or XAResource.TMFAIL
exception
PoolingException

        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("NoTxResourceManagerImpl :: unregisterResource called");
        }