You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Rob Newton <ro...@mirrabooka.com> on 2014/02/07 00:45:34 UTC

unusual broker feature?

Hi,

I've been using ActiveMQ for a while for pub/sub and it's working 
very well, but it would make life easier if there was an additional 
feature available.

I would like the broker to remember the most recent message that is 
published to a topic.  And when a client subscribes to the topic the 
message would be immediately published to the client by the broker 
itself.  (The messages would contain the latest state of something).

This appears to be an unusual feature, because I've searched around 
and cannot find any mention of a broker doing this.  Has anyone 
encountered this type of feature before?

Could there be an existing plugin for ActiveMQ that does this sort 
of thing?  Or would the plugin framework lend itself to implementing 
such a feature (by intercepting a subscription, and writing a 
message to the subscriber)?

Many thanks,
Rob

Re: unusual broker feature?

Posted by robnewton <ro...@mirrabooka.com>.
Christian, you are the man...



--
View this message in context: http://activemq.2283324.n4.nabble.com/unusual-broker-feature-tp4677575p4677611.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: unusual broker feature?

Posted by Christian Posta <ch...@gmail.com>.
Have you checked the "Last Image" subscription-recovery policy?

http://activemq.apache.org/subscription-recovery-policy.html

On Thu, Feb 6, 2014 at 4:45 PM, Rob Newton <ro...@mirrabooka.com> wrote:
> Hi,
>
> I've been using ActiveMQ for a while for pub/sub and it's working very well,
> but it would make life easier if there was an additional feature available.
>
> I would like the broker to remember the most recent message that is
> published to a topic.  And when a client subscribes to the topic the message
> would be immediately published to the client by the broker itself.  (The
> messages would contain the latest state of something).
>
> This appears to be an unusual feature, because I've searched around and
> cannot find any mention of a broker doing this.  Has anyone encountered this
> type of feature before?
>
> Could there be an existing plugin for ActiveMQ that does this sort of thing?
> Or would the plugin framework lend itself to implementing such a feature (by
> intercepting a subscription, and writing a message to the subscriber)?
>
> Many thanks,
> Rob



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta