Properties in this section are specified in the sun specific deployment descriptor of MDB as activation-config-properties. All the resource adapter properties can be overridden in an Activation Spec. Additional properties available only in ActivationSpec are given below.
Property Name |
Valid Value |
Default Value |
Description |
---|---|---|---|
MaxPoolSize |
An integer |
8 |
Maximum size of server session pool internally created by the resource adapter for achieving concurrent message delivery. This should be equal to the maximum pool size of MDB objects. |
MaxWaitTime |
An integer |
3 |
The resource adapter will wait for the time in seconds specified by this property to obtain a server session from its internal pool. If this limit is exceeded, message delivery will fail. |
SubscriptionDurability |
Durable or Non-Durable |
Non-Durable |
SubscriptionDurability as specified by JMS 1.1 specification. |
SubscriptionName |
none |
SubscriptionName as specified by JMS 1.1 specification. |
|
MessageSelector |
A valid message selector |
none |
MessageSelector as specified by JMS 1.1 specification. |
ClientID |
A valid client ID |
none |
ClientID as specified by JMS 1.1 specification. |
ConnectionFactoryJndiName |
A valid JNDI Name |
none |
JNDI name of connection factory created in JMS provider. This connection factory will be used by resource adapter to create a connection to receive messages. Used only if ProviderIntegrationMode is configured as jndi. |
DestinationJndiName |
A valid JNDI Name |
none |
JNDI name of destination created in JMS provider. This destination will be used by resource adapter to create a connection to receive messages from. Used only if ProviderIntegrationMode is configured as jndi. |
DestinationType |
javax.jms.Queue or javax.jms.Topic |
null |
Type of the destination the MDB will listen to. |
DestinationProperties |
Name-value pairs separated by comma |
none |
This specifies the javabean property names and values of the destination of the JMS client. Required only if ProviderIntegrationMode is javabean. |
RedeliveryAttempts |
integer |
Number of times a message will be delivered if a message causes a runtime exception in the MDB. |
|
RedeliveryInterval |
time in seconds |
Interval between repeated deliveries, if a message causes a runtime exception in the MDB. |
|
SendBadMessagesToDMD |
true/false |
false |
Indicates whether the resource adapter should send the messages to a dead message destination, if the number of delivery attempts is exceeded. |
DeadMessageDestinationJndiName |
a valid JNDI name. |
none |
JNDI name of the destination created in the JMS provider. This is the target destination for dead messages. This is used only if ProviderIntegrationMode is jndi. |
DeadMessageDestinationClassName |
class name of destination object. |
none |
Used if ProviderIntegrationMode is javabean. |
DeadMessageDestinationProperties |
Name Value Pairs separated by comma |
none |
This specifies the javabean property names and values of the destination of the JMS client. This is required only if ProviderIntegrationMode is javabean. |
ReconnectAttempts |
integer |
Number of times a reconnect will be attempted in case exception listener catches an error on connection. |
|
ReconnectInterval |
time in seconds |
interval between reconnects. |