You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Tamir <ta...@bigfoot.com> on 2008/01/30 12:08:40 UTC
ActiveMQ topology question (Store and Forward)
I'm new to ActiveMQ, so bear with me ...
I want to use ActiveMQ in the following scenario, and haven't find a way to
configure it the way I want it.
I have a lot of remove JVM (let's call them collectors) that send data to
one central JVM (server).
For scalability and availability reasons, I want to embed a broker into
every collector and have one main broker on the server. So far so good.
I saw that there's a feature called Store-and-Forward and I thought that
would be perfect for my needs, but it seems like in Store-and-Forward every
Q I'll define on a collector would be reflected on the server, so I'll end
up with multiple queues on the server. That's not what I want.
I want all the data from all the collector Q's to get forwarded into a
single main queue on the server broker. Of course I want the framework to do
it for me, so I'll benefit all the cool features it has to offer.
Can this be achieved using ActiveMQ?
--
View this message in context: http://www.nabble.com/ActiveMQ-topology-question-%28Store-and-Forward%29-tp15179713s2354p15179713.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ topology question (Store and Forward)
Posted by Tamir <ta...@bigfoot.com>.
Worked like a charm.
Now I have a follow up question ...
I'm looking for some documentation about some advanced configuration (at
least I think it's advanced :-) ) :
* I want to limit the length of the queue (to limit it's memory usage). I
want everything to be persisted to disk, but only to hold the last n items
in memory.
* I also like to limit the disk space used by the persistent mechanism
(probably by queue items). Older items would be purged.
Is that possible to do in AMQ? Where can I find documentation about this
kind of configuration?
Thanks in advance !
--
View this message in context: http://www.nabble.com/ActiveMQ-topology-question-%28Store-and-Forward%29-tp15179713s2354p15203188.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ topology question (Store and Forward)
Posted by ttmdev <jo...@ttmsolutions.com>.
With a forwarding bridge in-place between a remote collector and the central
server, a queue that is created on the collector will not automatically be
reflected/created on the server. You either have to define a queue in the
server broker's cfg file or have clients, which are connected to the server
broker, create the queue.
Define one queue (e.g., Server.Q) on the server broker that is used by all
collectors to forward messages to those consumers that are connected to the
server broker and reading from that particular queue. So in essence,
Server.Q is the logical communications channel between the producers on the
collectors and consumers on the central server.
Joe
Tamir wrote:
>
> I'm new to ActiveMQ, so bear with me ...
>
> I want to use ActiveMQ in the following scenario, and haven't find a way
> to configure it the way I want it.
> I have a lot of remove JVM (let's call them collectors) that send data to
> one central JVM (server).
>
> For scalability and availability reasons, I want to embed a broker into
> every collector and have one main broker on the server. So far so good.
> I saw that there's a feature called Store-and-Forward and I thought that
> would be perfect for my needs, but it seems like in Store-and-Forward
> every Q I'll define on a collector would be reflected on the server, so
> I'll end up with multiple queues on the server. That's not what I want.
> I want all the data from all the collector Q's to get forwarded into a
> single main queue on the server broker. Of course I want the framework to
> do it for me, so I'll benefit all the cool features it has to offer.
>
> Can this be achieved using ActiveMQ?
>
--
View this message in context: http://www.nabble.com/ActiveMQ-topology-question-%28Store-and-Forward%29-tp15179713s2354p15183421.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.