ConnectionFactory resource that it requires in its operational environment. This provides information that can be
used at the application's deployment to provision the required resource and allows an application to be deployed into
a Jakarta EE environment with more minimal administrative configuration.
The ConnectionFactory resource may be configured by setting the annotation elements for commonly used
properties. Additional properties may be specified using the properties element. Once defined, a
ConnectionFactory resource may be referenced by a component in the same way as any other
ConnectionFactory resource, for example by using the lookup element of the Resource
annotation.
jakarta.annotation.Resource
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The fully-qualified name of the Jakarta Messaging connection factory implementation class.Fully-qualified name of the Jakarta Messaging connection factory implementation class. |
| public String | |
| public String | Returns: The description of this Jakarta Messaging connection factory.Description of this Jakarta Messaging connection factory. |
| public String | Returns: The fully qualified name of the Jakarta Messaging connection factory interface.Fully qualified name of the Jakarta Messaging connection factory interface. |
| public int | Returns: The maximum number of connections that should be concurrently allocated for a connection pool.Maximum number of connections that should be concurrently allocated for a connection pool. |
| public int | Returns: The minimum number of connections that should be concurrently allocated for a connection pool.Minimum number of connections that should be concurrently allocated for a connection pool. |
| public String | Returns: The JNDI name of the Jakarta Messaging connection factory being defined.JNDI name of the Jakarta Messaging connection factory being defined. |
| public String | Returns: The password to use for connection authentication.Password to use for connection authentication. |
| public String[] | Returns: The Jakarta Messaging connection factory property.Jakarta Messaging connection factory property. |
| public String | |
| public boolean | Returns: Whether connections should participate in transactions.Set to |
| public String | Returns: The user name to use for connection authentication.User name to use for connection authentication. |
| className | back to summary |
|---|---|
| public String className() Fully-qualified name of the Jakarta Messaging connection factory implementation class. Ignored if a resource adapter is used.
| |
| clientId | back to summary |
|---|---|
| public String clientId() Client id to use for connection.
| |
| description | back to summary |
|---|---|
| public String description() Description of this Jakarta Messaging connection factory.
| |
| interfaceName | back to summary |
|---|---|
| public String interfaceName() Fully qualified name of the Jakarta Messaging connection factory interface. Permitted values are
| |
| maxPoolSize | back to summary |
|---|---|
| public int maxPoolSize() Maximum number of connections that should be concurrently allocated for a connection pool. Default is vendor-specific.
| |
| minPoolSize | back to summary |
|---|---|
| public int minPoolSize() Minimum number of connections that should be concurrently allocated for a connection pool. Default is vendor-specific.
| |
| name | back to summary |
|---|---|
| public String name() JNDI name of the Jakarta Messaging connection factory being defined.
| |
| password | back to summary |
|---|---|
| public String password() Password to use for connection authentication.
| |
| properties | back to summary |
|---|---|
| public String[] properties() Jakarta Messaging connection factory property. This may be a vendor-specific property or a less commonly used
Properties are specified using the format: propertyName=propertyValue with one property per array element.
| |
| resourceAdapter | back to summary |
|---|---|
| public String resourceAdapter() Resource adapter name. If not specified then the application server will define the default behaviour, which may or may not involve the use of a resource adapter.
| |
| transactional | back to summary |
|---|---|
| public boolean transactional() Set to Default is to enlist in a transaction when one is active or becomes active.
| |
| user | back to summary |
|---|---|
| public String user() User name to use for connection authentication.
| |