My Oracle Support Banner

Durable Subscriber is Deleted From the Topic if MDB is Stopped and Has Durable-Subscription-Deletion Set to True (Doc ID 841437.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Service Bus - Version 2.6 to 3.0 [Release Aqualogic Service Bus]
Information in this document applies to any platform.


When an MDB is stopped in WLS console and state changes to PREPARED state, the corresponding durable subscriber is deleted from the topic. The MDB has durable-subscription-deletion set to true. If this is set to false, the subscriber state only changes to deactivated, and is reactivated when the MDB is started again. The e-docs for durable-subscription-deletion only mentions that the subscriber is deleted when the MDB is undeployed.

Issue can be replicated in Service bus by
1. Disabling JMS based proxy service (polling on a durable topic) from operational settings.
2. Disabling a proxy service changes the MDB EAR associated with it to change to prepared state.

Now, go to WLS console and will find that see the subscriber gets deleted. Message send to topic while
proxy service is in disabled mode are lost.

Proxy service should be able to consume all the pending messages after it is enabled

The issue can be reproduced at will with the following steps:
1. Create a JMS proxy in ALSB that listens to a topic with durable subscription enabled.
2. Then either enable/disable the proxy in ALSB or stop/start the MDB in WLS console to see the subscriber get deleted.

The subscription should only be deactivated, not deleted.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.