javax.resource

Annotation Type ConnectionFactoryDefinition


  • @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 the lookup element of the Resource annotation.
    Since:
    1.7
    Version:
    1.7
    See Also:
    Resource
    • 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 the TransactionSupport.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:
        {}

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/resource/ConnectionFactoryDefinition.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com/en/java/, Annotation Type ConnectionFactoryDefinition

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.