Top Description Methods
javax.resource

public @Interface ConnectionFactoryDefinition

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME, javax.resource.spi.TransactionSupport.TransactionSupportLevel

Annotation used to define a Connector Connection Factory resource to be registered in JNDI. Once defined, a resource may be referenced by a component using the lookup element of the Resource annotation.
Since
1.7
Version
1.7
See Also
javax.annotation.Resource

Method Summary

Modifier and TypeMethod and Description
public String
description()

Description of the resource.

public String
interfaceName()

The fully qualified name of the connection factory interface class.

public int
maxPoolSize()

The maximum number of connections that should be allocated for a connection pool that backs this connnection factory resource.

public int
minPoolSize()

The minimum number of connections that should be allocated for a connection pool that backs this connnection factory resource.

public String
name()

JNDI name of the connection factory resource being defined.

public String[]
properties()

Properties of the Connection Factory.

public String
resourceAdapter()

The name of the resource adapter that the administered object must be created from.

public TransactionSupport.TransactionSupportLevel
transactionSupport()

The level of transaction support the connection factory resource needs to support.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

descriptionback to summary
public String description()

Description of the resource.

interfaceNameback to summary
public String interfaceName()

The fully qualified name of the connection factory interface class.

maxPoolSizeback to summary
public int maxPoolSize()

The maximum number of connections that should be allocated for a connection pool that backs this connnection factory resource. The default for this attribute is vendor specific.

minPoolSizeback to summary
public int minPoolSize()

The minimum number of connections that should be allocated for a connection pool that backs this connnection factory resource. The default for this attribute is vendor specific.

nameback to summary
public String name()

JNDI name of the connection factory resource being defined.

propertiesback to summary
public String[] properties()

Properties of the Connection Factory. These properties may be vendor-specific properties. Vendor-specific properties may be combined with or used to override the connection factory properties defined using this annotation. Connection Factory properties that are specified and are not supported in a given resource adapter or cannot be mapped to a vendor specific configuration property may be ignored.

resourceAdapterback to summary
public String resourceAdapter()

The name of the resource adapter that the administered object must be created from. The resource adapter is required to be available at deployment time.

transactionSupportback to summary
public TransactionSupport.TransactionSupportLevel transactionSupport()

The level of transaction support the connection factory resource needs to support. If a transaction support specification is specified, it must be a level of transaction support whose ordinal value in the TransactionSupport.TransactionSupportLevel enum is equal to or lesser than the resource adapter's transaction support classification.