Package org.apache.jackrabbit.jca
Class JCAManagedConnectionFactory
- java.lang.Object
- 
- org.apache.jackrabbit.jca.JCAManagedConnectionFactory
 
- 
- All Implemented Interfaces:
- Serializable,- javax.resource.spi.ManagedConnectionFactory
 
 public class JCAManagedConnectionFactory extends Object implements javax.resource.spi.ManagedConnectionFactory Implements the JCA ManagedConnectionFactory contract.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description JCAManagedConnectionFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateConnectionFactory()Creates a Connection Factory instance.ObjectcreateConnectionFactory(javax.resource.spi.ConnectionManager cm)Creates a Connection Factory instance.javax.resource.spi.ManagedConnectioncreateManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri)booleanequals(Object o)Return true if equals.protected voidfinalize()Shutdown the repository.BooleangetBindSessionToTransaction()StringgetConfigFile()Return the repository configuration file.StringgetHomeDir()Return the repository home directory.PrintWritergetLogWriter()Get the log writer.RepositorygetRepository()Return the repository, automatically creating it if needed.StringgetRepositoryURI()Return the repository URI.BooleangetStartRepositoryImmediately()inthashCode()Return the hash code.voidlog(String message)Log a message.voidlog(String message, Throwable exception)Log a message.javax.resource.spi.ManagedConnectionmatchManagedConnections(Set set, Subject subject, javax.resource.spi.ConnectionRequestInfo cri)Returns a matched connection from the candidate set of connections.voidsetBindSessionToTransaction(Boolean bindSessionToTransaction)voidsetConfigFile(String conf)Set the repository configuration file.voidsetHomeDir(String home)Set the repository home directory.voidsetLogWriter(PrintWriter logWriter)Set the log writer.voidsetRepositoryURI(String uri)Set the repository URI.voidsetStartRepositoryImmediately(Boolean startRepositoryImmediately)
 
- 
- 
- 
Method Detail- 
getRepositoryURIpublic String getRepositoryURI() Return the repository URI.
 - 
setRepositoryURIpublic void setRepositoryURI(String uri) Set the repository URI.
 - 
getHomeDirpublic String getHomeDir() Return the repository home directory.
 - 
setHomeDirpublic void setHomeDir(String home) Set the repository home directory.
 - 
getConfigFilepublic String getConfigFile() Return the repository configuration file.
 - 
setConfigFilepublic void setConfigFile(String conf) Set the repository configuration file.
 - 
getLogWriterpublic PrintWriter getLogWriter() Get the log writer.- Specified by:
- getLogWriterin interface- javax.resource.spi.ManagedConnectionFactory
 
 - 
setLogWriterpublic void setLogWriter(PrintWriter logWriter) throws javax.resource.ResourceException Set the log writer.- Specified by:
- setLogWriterin interface- javax.resource.spi.ManagedConnectionFactory
- Throws:
- javax.resource.ResourceException
 
 - 
createConnectionFactorypublic Object createConnectionFactory() throws javax.resource.ResourceException Creates a Connection Factory instance.- Specified by:
- createConnectionFactoryin interface- javax.resource.spi.ManagedConnectionFactory
- Throws:
- javax.resource.ResourceException
 
 - 
createConnectionFactorypublic Object createConnectionFactory(javax.resource.spi.ConnectionManager cm) throws javax.resource.ResourceException Creates a Connection Factory instance.- Specified by:
- createConnectionFactoryin interface- javax.resource.spi.ManagedConnectionFactory
- Throws:
- javax.resource.ResourceException
 
 - 
createManagedConnectionpublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException Creates a new physical connection to the underlying EIS resource manager. WebSphere 5.1.1 will try to recover an XA resource on startup, regardless whether it was committed or rolled back. On this occasion, criwill benull. In order to be interoperable, we return an anonymous connection, whose XA resource is recoverable-only.- Specified by:
- createManagedConnectionin interface- javax.resource.spi.ManagedConnectionFactory
- Throws:
- javax.resource.ResourceException
 
 - 
matchManagedConnectionspublic javax.resource.spi.ManagedConnection matchManagedConnections(Set set, Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException Returns a matched connection from the candidate set of connections.- Specified by:
- matchManagedConnectionsin interface- javax.resource.spi.ManagedConnectionFactory
- Throws:
- javax.resource.ResourceException
 
 - 
getRepositorypublic Repository getRepository() throws RepositoryException Return the repository, automatically creating it if needed.- Throws:
- RepositoryException
 
 - 
logpublic void log(String message) Log a message.
 - 
hashCodepublic int hashCode() Return the hash code.
 - 
equalspublic boolean equals(Object o) Return true if equals.
 - 
getBindSessionToTransactionpublic Boolean getBindSessionToTransaction() 
 - 
setBindSessionToTransactionpublic void setBindSessionToTransaction(Boolean bindSessionToTransaction) 
 - 
getStartRepositoryImmediatelypublic Boolean getStartRepositoryImmediately() 
 - 
setStartRepositoryImmediatelypublic void setStartRepositoryImmediately(Boolean startRepositoryImmediately) 
 
- 
 
-