FileDocCategorySizeDatePackage
ActiveResourceAdapter.javaAPI DocGlassfish v2 API4029Thu Jul 26 03:27:26 BST 2007com.sun.enterprise.connectors

ActiveResourceAdapter

public interface ActiveResourceAdapter
Interface class for different types (1.0 and 1.5 complient) resource adapter abstraction classes. Containes methods for setup(initialization), destroy and creation of MCF.
author
Srikanth P and Binod PG

Fields Summary
Constructors Summary
Methods Summary
public javax.resource.spi.ManagedConnectionFactory[]createManagedConnectionFactories(ConnectorConnectionPool cpr, java.lang.ClassLoader loader)

public javax.resource.spi.ManagedConnectionFactorycreateManagedConnectionFactory(ConnectorConnectionPool cpr, java.lang.ClassLoader loader)
Creates managed Connection factory instance.

param
ccp Connector connection pool which contains the pool properties and ra.xml values pertaining to managed connection factory class. These values are used in MCF creation.
param
jcl Classloader used to managed connection factory class.
return
ManagedConnectionFactory created managed connection factory instance

public voiddestroy()
uninitializes the resource adapter.

public java.lang.ClassLoadergetClassLoader()
Returns the class loader that is used to load the RAR.

return
ClassLoader object.

public com.sun.enterprise.deployment.ConnectorDescriptorgetDescriptor()
Returns the Connector descriptor which represents/holds ra.xml

return
ConnectorDescriptor Representation of ra.xml.

public java.lang.StringgetModuleName()
Returns the module Name of the RAR

return
A String representing the name of the connector module

public voidsetup()
It initializes the resource adapter.

throws
ConnectorRuntimeException. This exception is thrown if the setup/initialization fails.