@Target(value=TYPE) @Retention(value=RUNTIME) public @interface JMSConnectionFactoryDefinition
JMSConnectionFactory
may be
configured by setting the annotation elements for commonly used
JMSConnectionFactory
properties. Additional standard and
vendor-specific properties may be specified using the properties
element. Once defined, a connection factory may be referenced by a
component using the lookup
element of the Resource
annotation.Resource
Modifier and Type | Required Element and Description |
---|---|
String |
className
JMS connection factory implementation class name which implements:
javax.jms.ConnectionFactory or
javax.jms.QueueConnectionFactory or
javax.jms.TopicConnectionFactory |
String |
name
JNDI name of the JMS connection factory being defined.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
clientId
Client id to use for connection.
|
int |
connectionTimeout
Sets the maximum time in seconds that to wait while attempting to connect
to the resource.
|
String |
description
Description of this JMS connection factory.
|
int |
initialPoolSize
Number of connections that should be created when a connection pool is
initialized.
|
int |
maxIdleTime
The number of seconds that a physical connection should remain unused in
the pool before the connection is closed for a connection pool.
|
int |
maxPoolSize
Maximum number of connections that should be concurrently allocated for a
connection pool.
|
int |
minPoolSize
Minimum number of connections that should be concurrently allocated for a
connection pool.
|
String |
password
Password to use for connection authentication.
|
String[] |
properties
JMS connection factory property.
|
String |
resourceAdapterName
Resource adapter name.
|
boolean |
transactional
Set to
false if connections should not participate in
transactions. |
String |
url
Opaque string which defines how to connect to the JMS provider.
|
String |
user
User name to use for connection authentication.
|
public abstract String name
public abstract String className
javax.jms.ConnectionFactory
or
javax.jms.QueueConnectionFactory
or
javax.jms.TopicConnectionFactory
public abstract String description
public abstract String resourceAdapterName
public abstract String user
public abstract String password
public abstract String clientId
public abstract String url
public abstract String[] properties
ConnectionFactory
property.
Properties are specified using the format: propertyName=propertyValue with one property per array element.
public abstract int connectionTimeout
Default is vendor-specific.
public abstract boolean transactional
false
if connections should not participate in
transactions.
Default is to enlist in a transaction when one is active or becomes active.
public abstract int initialPoolSize
Default is vendor-specific
public abstract int maxPoolSize
Default is vendor-specific.
public abstract int minPoolSize
Default is vendor-specific.
public abstract int maxIdleTime
Default is vendor-specific
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.