-
1. Re: Durable subscriptions management via JMX console
gaohoward Dec 4, 2009 6:34 AM (in response to enriqueam)No, I don't think JBM support this.
-
2. Re: Durable subscriptions management via JMX console
enriqueam Dec 4, 2009 6:42 AM (in response to enriqueam)Shame :-(
Thanks for the quick reply. -
3. Re: Durable subscriptions management via JMX console
timfox Dec 4, 2009 7:00 AM (in response to enriqueam)HornetQ does support it
-
4. Re: Durable subscriptions management via JMX console
jeffleboss Dec 9, 2009 11:07 AM (in response to enriqueam)
I have the same requirement.
The problem is that I cannot upgrade to HornetQ, since we are using JBoss 5.1.0.
I have a solution where we delete the subscription from the persistence database which works partially because, the server does not refresh its memory and does not see that its has been deleted. We must, restart the server so this works.
Would there be a way to delete the durable subscription from the database and trigger the messaging engine to refresh its state without restarting the server?
Jeff -
5. Re: Durable subscriptions management via JMX console
timfox Dec 9, 2009 11:36 AM (in response to enriqueam)"jeffleboss" wrote:
I have the same requirement.
The problem is that I cannot upgrade to HornetQ, since we are using JBoss 5.1.0.
HornetQ works with both JBoss 4 and JBoss 5 (see quickstart guide) -
6. Re: Durable subscriptions management via JMX console
jeffleboss Dec 9, 2009 1:29 PM (in response to enriqueam)Thanks for the info.
In our setup, we have a JBoss 5.1.0 MDB client and the JBoss 5.1.0 which has the topic.
If we decide to upgrade our server JMS solution with HornetQ, will this require that JBoss client on which the MDB lives be upgraded as well ?
In theory, if we are implementing the same JMS spec, the answer is no but we had many problems configuring the JMS messaging/remoting in 5.1.0 that I am not to hot about this upgrade.
From what I have seen in the code, a lot of things hav changed since messaging 1.4 (in remoting and messaging).
Jeff -
7. Re: Durable subscriptions management via JMX console
gaohoward Dec 9, 2009 10:20 PM (in response to enriqueam)I think you do need to upgrade. HornetQ has a pluggable transport layer and doesn't require remoting. Currently it comes with netty as its transport.
-
8. Re: Durable subscriptions management via JMX console
jeffleboss Dec 10, 2009 10:02 AM (in response to enriqueam)
For the benefice of "enriqueam".
My WorkAround is to create an MBean in the server that just do an unsuscribe on the subscription without consuming the messages.
This removes the durable subscription and all of its messages.
For this to work you have to make sure that your remoting bisocket config is changed from the default factory setting so that when the client goes down the server after some time will discard its connection. This allows the MBean to "steal" the durable subscription and to the unsubscribe. Otherwise, you would recive the error
Cannot create a subscriber on the durable subscription since it already has subscriber(s)
But the way the upgrade is on the radar, but I have to deal with an operational system.
Hope this helps.
Jeff -
9. Re: Durable subscriptions management via JMX console
enriqueam Dec 14, 2009 5:28 AM (in response to jeffleboss)Thank you very much Jean-Francois for you workaround. I will definitely try that.