-
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ConnectionFactoryDefinition
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 thelookup
element of theResource
annotation.- Since:
- 1.7
- Version:
- 1.7
- See Also:
Resource
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description String
interfaceName
The fully qualified name of the connection factory interface class.String
name
JNDI name of the connection factory resource being defined.String
resourceAdapter
The name of the resource adapter that the administered object must be created from.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description String
description
Description of the resource.int
maxPoolSize
The maximum number of connections that should be allocated for a connection pool that backs this connnection factory resource.int
minPoolSize
The minimum number of connections that should be allocated for a connection pool that backs this connnection factory resource.String[]
properties
Properties of the Connection Factory.TransactionSupport.TransactionSupportLevel
transactionSupport
The level of transaction support the connection factory resource needs to support.
-
-
-
Element Detail
-
name
public abstract String name
JNDI name of the connection factory resource being defined.
-
-
-
resourceAdapter
public abstract 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.
-
-
-
interfaceName
public abstract String interfaceName
The fully qualified name of the connection factory interface class.
-
-
-
description
public abstract String description
Description of the resource.- Default:
- ""
-
-
-
transactionSupport
public abstract 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 theTransactionSupport.TransactionSupportLevel
enum is equal to or lesser than the resource adapter's transaction support classification.- Default:
- javax.resource.spi.TransactionSupport.TransactionSupportLevel.NoTransaction
-
-
-
maxPoolSize
public abstract 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.- Default:
- -1
-
-
-
minPoolSize
public abstract 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.- Default:
- -1
-
-
-
properties
public abstract 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.- Default:
- {}
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/resource/ConnectionFactoryDefinition.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Manuel PHP : https://docs.oracle.com,
ConnectionFactoryDefinition (Java(TM) EE 7 Specification APIs)
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.