FileDocCategorySizeDatePackage
BasicResourceAllocator.javaAPI DocGlassfish v2 API4949Fri May 04 22:34:24 BST 2007com.sun.enterprise.connectors.inflow

BasicResourceAllocator

public final class BasicResourceAllocator extends com.sun.enterprise.resource.AbstractConnectorAllocator

Fields Summary
private static final Logger
logger
private static final String
JMS_RESOURCE_FACTORY
Constructors Summary
public BasicResourceAllocator()


       
Methods Summary
public voidcleanup(com.sun.enterprise.resource.ResourceHandle resourceHandle)

        throw new UnsupportedOperationException();
    
public voidcloseUserConnection(com.sun.enterprise.resource.ResourceHandle resourceHandle)

        throw new UnsupportedOperationException();
    
public com.sun.enterprise.resource.ResourceHandlecreateResource()

        throw new UnsupportedOperationException();
    
public com.sun.enterprise.resource.ResourceHandlecreateResource(javax.transaction.xa.XAResource xaResource)


        ResourceHandle resourceHandle = null;
        ResourceSpec spec =
                new ResourceSpec(JMS_RESOURCE_FACTORY,
                                 ResourceSpec.JMS);
        
        if (xaResource != null) {
            
            logger.logp(Level.FINEST, 
                    "BasicResourceAllocator", "createResource",
                    "NOT NULL", xaResource);
            
            try {
                resourceHandle = new ResourceHandle(
                        null,  //no object present
		        spec,
                        this, null);
                
                if (logger.isLoggable(Level.FINEST)) {
                    xaResource = new XAResourceWrapper(xaResource);
                }
                    
                resourceHandle.fillInResourceObjects(null, xaResource);

            } catch (Exception e) {
                throw (PoolingException) (new PoolingException()).initCause(e);
            }
        } else {
            logger.logp(Level.FINEST, 
                    "BasicResourceAllocator", "createResource",
                    "NULL", xaResource);
        }

        return resourceHandle;
    
public java.util.SetgetInvalidConnections(java.util.Set connectionSet)

        throw new UnsupportedOperationException();
    
public booleanisConnectionValid(com.sun.enterprise.resource.ResourceHandle resource)

        throw new UnsupportedOperationException();
    
public booleanmatchConnection(com.sun.enterprise.resource.ResourceHandle resourceHandle)

        return false;
    
public booleansupportsReauthentication()

        return false;