Description of problem:
Durable subscriptions on topic deployed with message driven bean doesn't disappear after MDB is undelpoyed and subscribers can get messages from this topic after MDB is deployed back.
Steps to Reproduce:
1.Deploy MDB with topic defined in hornetq-jms.xml
2. Subscribe some subscriber (use durable subscription)
3. Undeploy MDB
Subscriptions remain on server
All subscriptions should be cleaned.
If the topic is deployed with the MDB, why did you use a durable subscriber to consume from this topic?
It's not only with this case of deployment. If you make topic in standalone-full-ha.xml then you make subscription to it and after that you remove this topic (and after server restart of course), subscriptions still remains.
Bug is fixed in upstream.
To fix the issue in EAP, it requires to upgrade HornetQ as the feature is depending on https://issues.jboss.org/browse/HORNETQ-1225 that was not back ported to HornetQ 2.3.x branch
Clebert, I've assigned this issue to you so that HORNETQ-12225 can be backported to 2.3.x branch to fix the issue.