Use this task to configure durable subscription properties of JMS
connection factories for use by enterprise beans with the default messaging
provider.
About this task
To enable applications to create durable subscriptions to JMS
topics with the default messaging provider, you can set a number of properties
on JMS connection factories.
If applications use message-driven beans
to create durable subscriptions, you should set the properties on the JMS
activation specification used by the message-driven beans, as described in Configuring JMS activation
specifications for durable subscriptions, instead of as described in this topic.
This topic describes the setting of properties
on a unified JMS connection factory. You can also set the same properties
on a JMS topic connection factory instead.
To configure the durable
subscription properties to a topic for use by enterprise beans with the default
messaging provider, use the administrative console to complete the following
steps:
Procedure
- Display the default messaging provider. In the navigation
pane, click .
- Select the default provider for which you want to configure connection
factory properties.
- Optional: Change the Scope check
box to set the level at which the connection factory is to be visible, according
to your needs.
- In the content pane, under the Additional properties heading, click Connection
factories. This displays any existing JMS connection
factories for the default messaging provider in the content pane.
- Click the name of the connection factory you want to configure. This displays the properties for the connection factory in the
content pane.
- Specify the following properties for the connection factory:
- 用戶端 ID
- This is the JMS client identifier that applications use to identify durable
topic subscriptions created on all connections that use this connection factory.
For more information about client identifiers, see section 4.3.2 of the JMS
1.1 specification.
- 訂閱首頁
This identifies the messaging engine
where durable subscriptions are localized on the service integration bus.
Administrators can manage the runtime state of durable subscriptions through
publication points for that messaging engine.
- Click OK.
- 儲存對主要配置所做的變更。
What to do next
When applications have created durable subscriptions, you can use
the administrative console to manage the runtime state of those subscriptions,
as described in
Administering durable subscriptions.
The
JMS connection factory has some other advanced properties that you can configure
to change the behavior for durable subscriptions. You should not usually
need to change these properties from their default values.
- 先讀
- This controls read ahead optimization during message delivery. This defines
whether the provider can stream messages to durable subscribers ahead
of their requests (to provide a performance enhancement).
- 共用訂閱
- This controls whether durable subscriptions can be accessed simultaneously
by several subscribers.
If you want to control read ahead optimization during
message delivery for individual topics, you can set the 先讀 property on the topics.