Configuring the Eclipse Amlen resource adapter for inbound communication
To configure inbound communication, define the properties of one or more ActivationSpec objects.
The properties of an ActivationSpec object determine how a Message-Driven bean (MDB) receives JMS messages from Eclipse Amlen. These properties are used to create all JMS objects that are necessary to receive messages, including connection, session, and consumer objects.
- Log on to the WebSphere Application Server administrative console.
- Click .
- Optional: Change the Scope setting if required.
The default setting is
ALL
. - Click New and complete the Name field and the JNDI name field for your activation specification.
- Click Apply.
- Click the J2C activation specification custom properties link in the Additional Properties panel. You can then edit the properties of the ActivationSpec object.
- Click Save to save your changes.
Table 1 lists the properties of an ActivationSpec object that are used to configure the Eclipse Amlen resource adapter for inbound communication.
Name of property | Type | Valid values | Default value | Description |
---|---|---|---|---|
acknowledgeMode | String | Auto-acknowledge , Dups-ok-acknowledge |
Auto-acknowledge |
The mode for acknowledging received messages. When |
clientId | String | Any valid Unicode string | null |
The client ID for this connection. Setting client ID is optional in most cases, but is required for non-shared, durable subscriptions. If clientId is set, it must be unique for all connections to an Eclipse Amlen server. If clientId is not set (and is not required to be set), then the Eclipse Amlen JMS client automatically creates a client ID. The Eclipse Amlen JMS client allows
any valid Unicode string to be used as a client ID. However, you might
prefer to use displayable characters. System generated client IDs
start with an underscore ( |
clientMessageCache | Numeric | -1 , or 0 and
above |
-1 |
The maximum number of cached messages for each consumer. Eclipse Amlen has
built-in default cache sizes. Use the default setting of Using larger values for clientMessageCache can
improve throughput. However, in the cases of queues with multiple
consumers, and shared topic subscriptions, use the value of |
concurrentConsumers | Numeric | Value can be in the range of 1 - 100 |
1 |
The maximum number of consumers on this connection. For
topics, this value must not exceed 1, unless subscriptionShared is
set to |
convertMessageType | String | auto , bytes , text |
auto |
The action to take when a message is converted to JMS from a source that does not indicate the message type. If
the message comes from JMS, then this property is not used. When |
destination | String | Any valid Unicode string | null |
The name of the topic or queue from which messages are received. Specify either the destination and destinationType properties or the destinationLookup property. If the destinationLookup property is set, then the values that are specified for the destination and destinationType properties are ignored. |
destinationLookup | String | Any valid Unicode string | null |
The name of a JNDI object that represents the Eclipse Amlen topic or queue from which messages are received. Specify either the destination and destinationType properties or the destinationLookup property. If the destinationLookup property is set, then the values that are specified for the destination and destinationType properties are ignored. To use destinationLookup, configure the administered object for this destination. For more information, see Configuring the Eclipse Amlen resource adapter for administered objects. |
destinationType | String | javax.jms.Topic , javax.jms.Queue |
null |
The type of destination for a specified destination value. This property and the destination property must be specified if the destinationLookup property is not set. If the destinationLookup property is set, then the values that are specified for the destination and destinationType properties are ignored. |
enableRollback | String | true , false |
false |
Specifies how messages are handled when When
a MDB runs in an unspecified transaction context, enableRollback determines
how to handle a message if an exception is generated from the MDB A
MDB runs with an unspecified transaction context when configured in
one of the following ways:
If set to If the MDB
is configured with transaction-type |
maxDeliveryFailures | Numeric | -1 , or 0 and
above |
-1 |
The maximum number of The MDB is responsible for handling errors in
the The
failure count is a cumulative value and it can include failures for
more than one message. The count is reset to 0 for
an MDB only if both of the following conditions are true;
If the specified destination is a topic, any message that is published while the MDB is paused is lost unless the MDB is configured to use a durable subscription. If the MDB uses a durable subscription or if the destination is a queue, it is important to restart the MDB promptly after a pause. If the MDB is not restarted after a pause, a backlog of messages can accumulate on the Eclipse Amlen server. Note: To
resume the message endpoint in WebSphere Application
Server, click Applications
> Application Types > WebSphere enterprise applications and
then select the application name. On the application panel,
select the Runtime tab. Then, select Manage
message endpoints. |
messageSelector | String | A selector that is composed of valid Unicode characters | null |
A JMS message selector that specifies which
messages are selected. The default value of |
password | String | Any valid Unicode string | null |
The password for user authentication with Eclipse Amlen. Eclipse Amlen uses this value if user is specified. |
port | Numeric | Value can be in the range of 1 - 65535 |
0 This default value must be changed. |
The Eclipse Amlen TCP port to use for this connection. If there are multiple Eclipse Amlen servers in the server properties list, then all servers use the same port. |
protocol | String | tcp , tcps |
tcp |
The transmit protocol for communication with Amlen. A value of |
securityConfiguration | String | Any valid Unicode string | null |
The name of the WebSphere security configuration to use for this connection. This value is only used if protocol is
set to |
securitySocketFactory | String | Any valid Unicode string | null |
The name of the security socket factory that is used for establishing secure connections. This value is
only used if protocol is set to |
server | String | Any valid Unicode string | null This default value must be changed. |
A space or comma delimited list of Eclipse Amlen host names or IP addresses. The resource adapter attempts to connect to each server in the list until a connection is established. |
subscriptionDurability | String | Durable , NonDurable |
NonDurable |
Specifies whether a topic subscription is durable. This value is ignored if the destination is a queue. When
set to |
subscriptionName | String | Any valid Unicode string | null |
The name for a durable or shared subscription. This value must be set for any durable or shared subscription. This value is ignored if the destination is a queue, or if the subscription is a non-durable unshared subscription. |
subscriptionShared | String | Shared , NonShared |
NonShared |
Specifies whether a subscription is shared between consumers or not. This value is ignored if the destination
is a queue. If set to |
traceLevel | Numeric | -1 , or value can be in the
range of 0 - 9 |
-1 |
The level of trace detail that is provided in the Eclipse Amlen JMS client and resource adapter output for this connection. When set to For
example, WebSphere Application
Server is
started with defaultTraceLevel set to At level Note: If the defaultTraceLevel is
changed after the WebSphere Application
Server is
started, then any new or existing activation specifications and connection
factories that are set to use -1 continue to receive
and use the defaultTraceLevel that was in effect
when the WebSphere Application
Server started.
The new defaultTraceLevel value is not used until
the next time the application server is started. |
user | String | Any valid Unicode string | null |
The user name for user authentication with Eclipse Amlen. Eclipse Amlen always uses this
value if it is provided, unless a security profile is attached to
the endpoint with UsePasswordAuthentication set
to |
Wildcards
Wildcards are supported for inbound communication when you use topics. For more information about wildcards, see Wildcards.