You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Kyle Himmerick (JIRA)" <ji...@apache.org> on 2006/05/24 16:53:51 UTC
[jira] Created: (AMQ-723) Generate Advisory Messages to setup tear
down producer based on consumer activity
Generate Advisory Messages to setup tear down producer based on consumer activity
---------------------------------------------------------------------------------
Key: AMQ-723
URL: https://issues.apache.org/activemq/browse/AMQ-723
Project: ActiveMQ
Type: New Feature
Components: Broker
Versions: 4.0
Reporter: Kyle Himmerick
Fix For: 4.1
Use Case is a custom producer is setup for each topic and should be shut down when there are no subscribers left.
With the getConsumerAdvisoryTopic I can receive messages when a specific subscriber joins or leaves. So I can figure out if a consumer is the first, but it would be nice to receive a separate message here.
Currently there is nothing that generates advisory messages when there are no subscribers left. The getNoTopicConsumersAdvisoryTopic() only fires when a message is sent to a topic with no consumers, like dead letter queue. A separate advisory message should be fired when the last subscriber leaves. Ideally we could set a delay for this advisory message, so it could fire if the ConsumerCount remained at 0 for x msec/min. This would prevent unnecessary tear down/setup of the producer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AMQ-723) Generate Advisory Messages to setup
tear down producer based on consumer activity
Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-723?page=comments#action_36209 ]
Hiram Chirino commented on AMQ-723:
-----------------------------------
I don't think the broker needs to generate an advisory message for a time out. The timeout can be implemented in the client side API.
> Generate Advisory Messages to setup tear down producer based on consumer activity
> ---------------------------------------------------------------------------------
>
> Key: AMQ-723
> URL: https://issues.apache.org/activemq/browse/AMQ-723
> Project: ActiveMQ
> Type: New Feature
> Components: Broker
> Versions: 4.0
> Reporter: Kyle Himmerick
> Fix For: 4.1
>
> Original Estimate: 30 minutes
> Remaining: 30 minutes
>
> Use Case is a custom producer is setup for each topic and should be shut down when there are no subscribers left.
> With the getConsumerAdvisoryTopic I can receive messages when a specific subscriber joins or leaves. So I can figure out if a consumer is the first, but it would be nice to receive a separate message here.
> Currently there is nothing that generates advisory messages when there are no subscribers left. The getNoTopicConsumersAdvisoryTopic() only fires when a message is sent to a topic with no consumers, like dead letter queue. A separate advisory message should be fired when the last subscriber leaves. Ideally we could set a delay for this advisory message, so it could fire if the ConsumerCount remained at 0 for x msec/min. This would prevent unnecessary tear down/setup of the producer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (AMQ-723) Generate Advisory Messages to setup tear
down producer based on consumer activity
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-723?page=all ]
james strachan resolved AMQ-723.
--------------------------------
Resolution: Fixed
I think this is now resolved by just using the aforementioned selector (consumerCount=0) on the subscription to consumer advisories
> Generate Advisory Messages to setup tear down producer based on consumer activity
> ---------------------------------------------------------------------------------
>
> Key: AMQ-723
> URL: https://issues.apache.org/activemq/browse/AMQ-723
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker
> Affects Versions: 4.0
> Reporter: Kyle Himmerick
> Fix For: 4.1
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> Use Case is a custom producer is setup for each topic and should be shut down when there are no subscribers left.
> With the getConsumerAdvisoryTopic I can receive messages when a specific subscriber joins or leaves. So I can figure out if a consumer is the first, but it would be nice to receive a separate message here.
> Currently there is nothing that generates advisory messages when there are no subscribers left. The getNoTopicConsumersAdvisoryTopic() only fires when a message is sent to a topic with no consumers, like dead letter queue. A separate advisory message should be fired when the last subscriber leaves. Ideally we could set a delay for this advisory message, so it could fire if the ConsumerCount remained at 0 for x msec/min. This would prevent unnecessary tear down/setup of the producer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (AMQ-723) Generate Advisory Messages to setup
tear down producer based on consumer activity
Posted by "james strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-723?page=comments#action_36630 ]
james strachan commented on AMQ-723:
------------------------------------
I added some documentation to the advisory messages page
http://activemq.org/site/advisory-message.html
basically each consumer advisory message has the number of active consumers on the destination as a header, so you can use the selector...
consumerCount = 0
to be notified only when there are no consumers. (Note you might want to check in JMX on startup to see what consumers are available, then use advisories for events)
> Generate Advisory Messages to setup tear down producer based on consumer activity
> ---------------------------------------------------------------------------------
>
> Key: AMQ-723
> URL: https://issues.apache.org/activemq/browse/AMQ-723
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Broker
> Affects Versions: 4.0
> Reporter: Kyle Himmerick
> Fix For: 4.1
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> Use Case is a custom producer is setup for each topic and should be shut down when there are no subscribers left.
> With the getConsumerAdvisoryTopic I can receive messages when a specific subscriber joins or leaves. So I can figure out if a consumer is the first, but it would be nice to receive a separate message here.
> Currently there is nothing that generates advisory messages when there are no subscribers left. The getNoTopicConsumersAdvisoryTopic() only fires when a message is sent to a topic with no consumers, like dead letter queue. A separate advisory message should be fired when the last subscriber leaves. Ideally we could set a delay for this advisory message, so it could fire if the ConsumerCount remained at 0 for x msec/min. This would prevent unnecessary tear down/setup of the producer.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira