com.sun.genericra.outbound
Class AbstractManagedConnectionFactory

java.lang.Object
  extended by com.sun.genericra.GenericJMSRAProperties
      extended by com.sun.genericra.outbound.AbstractManagedConnectionFactory
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation
Direct Known Subclasses:
ManagedJMSConnectionFactory, ManagedQueueConnectionFactory, ManagedTopicConnectionFactory

public abstract class AbstractManagedConnectionFactory
extends GenericJMSRAProperties
implements javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ResourceAdapterAssociation

ManagedConnectionFactory implementation of the Generic JMS resource adapter and is a factory of both ManagedConnection and JMS-specific ConnectionFactory instances.

Author:
Sivakumar Thyagarajan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.genericra.GenericJMSRAProperties
ONE_PER_PHYSICALCONNECTION, PROVIDER_MANAGED
 
Constructor Summary
AbstractManagedConnectionFactory()
           
 
Method Summary
 java.lang.Object createConnectionFactory()
           
 java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm)
           
 javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClientId()
           
 java.lang.String getConnectionFactoryJndiName()
           
 boolean getConnectionValidationEnabled()
           
 int getDestinationMode()
           
 java.io.PrintWriter getLogWriter()
           
 int hashCode()
           
 boolean isInAppClientContainer()
           
 javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
           
 void setClientId(java.lang.String clientId)
           
 void setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
           
 void setConnectionValidationEnabled(boolean connectionValidationEnabled)
           
 void setLogWriter(java.io.PrintWriter pw)
           
 
Methods inherited from class com.sun.genericra.GenericJMSRAProperties
getCommonSetterMethodName, getConnectionFactoryClassName, getConnectionFactoryProperties, getJndiProperties, getPassword, getProviderIntegrationMode, getQueueClassName, getQueueConnectionFactoryClassName, getResourceAdapter, getRMPolicy, getSupportsXA, getTopicClassName, getTopicConnectionFactoryClassName, getUserName, getXAConnectionFactoryClassName, getXAQueueConnectionFactoryClassName, getXATopicConnectionFactoryClassName, setCommonSetterMethodName, setConnectionFactoryClassName, setConnectionFactoryProperties, setJndiProperties, setPassword, setProviderIntegrationMode, setQueueClassName, setQueueConnectionFactoryClassName, setResourceAdapter, setRMPolicy, setSupportsXA, setTopicClassName, setTopicConnectionFactoryClassName, setUserName, setXAConnectionFactoryClassName, setXAQueueConnectionFactoryClassName, setXATopicConnectionFactoryClassName, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ResourceAdapterAssociation
getResourceAdapter, setResourceAdapter
 

Constructor Detail

AbstractManagedConnectionFactory

public AbstractManagedConnectionFactory()
Method Detail

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws javax.resource.ResourceException
Specified by:
getLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

setLogWriter

public void setLogWriter(java.io.PrintWriter pw)
                  throws javax.resource.ResourceException
Specified by:
setLogWriter in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.Object createConnectionFactory()
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createConnectionFactory

public java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager cm)
                                         throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

createManagedConnection

public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cri)
                                                             throws javax.resource.ResourceException
Specified by:
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

matchManagedConnections

public javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                                                    javax.security.auth.Subject subject,
                                                                    javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
                                                             throws javax.resource.ResourceException
Specified by:
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactory
Throws:
javax.resource.ResourceException

getClientId

public java.lang.String getClientId()

setClientId

public void setClientId(java.lang.String clientId)

getConnectionFactoryJndiName

public java.lang.String getConnectionFactoryJndiName()
Returns:
Returns the connectionFactoryJndiName.

setConnectionFactoryJndiName

public void setConnectionFactoryJndiName(java.lang.String connectionFactoryJndiName)
Parameters:
connectionFactoryJndiName - The connectionFactoryJndiName to set.

isInAppClientContainer

public boolean isInAppClientContainer()
Returns:
Returns the inAppClientContainer.

getConnectionValidationEnabled

public boolean getConnectionValidationEnabled()
Returns:
Returns the enableValidation.

setConnectionValidationEnabled

public void setConnectionValidationEnabled(boolean connectionValidationEnabled)
Parameters:
enableValidation - The enableValidation to set.

hashCode

public int hashCode()
Specified by:
hashCode in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
hashCode in class GenericJMSRAProperties

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface javax.resource.spi.ManagedConnectionFactory
Overrides:
equals in class GenericJMSRAProperties

getDestinationMode

public int getDestinationMode()