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 Java 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.
javax.annotation.Resource
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | |
| public String | |
| public int | maxPoolSize()
Maximum number of connections that should be concurrently allocated for a connection pool. |
| public int | minPoolSize()
Minimum number of connections that should be concurrently allocated for a connection pool. |
| public String | |
| public String | |
| public String[] | |
| public String | |
| public boolean | |
| public String |
| className | back to summary |
|---|---|
| public String className() Fully-qualified name of the JMS 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 JMS connection factory. | |
| interfaceName | back to summary |
|---|---|
| public String interfaceName() Fully qualified name of the JMS 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 JMS connection factory being defined. | |
| password | back to summary |
|---|---|
| public String password() Password to use for connection authentication. | |
| properties | back to summary |
|---|---|
| public String[] properties() JMS 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. | |