Re: Question about Network Brokers

2014-10-02 Thread Tim Bain
I'm confused by what you're asking, so let me try to explain what I would
expect, and see if that answers your questions.

You will have producers, which all connect to a broker (call it BP).  That
broker will have networkConnectors to the broker for Version1 consumers
(BV1) and the broker for Version2 consumers (BV2); it needs both of those
networkConnectors so it can send messages to either broker as needed.  When
Version1 consumers connect to BV1, BV1 will route a subscription request to
BP, and messages from producers will flow through BP to BV1 and then to
Version1 consumers.  The same thing will happen on BV2 for Version2
consumers.

Brokers don't listen to messages, they get subscription requests from
consumers and make subscription requests to other brokers to allow messages
to flow to consumers.  And as long as you have duplex network connectors
between your brokers and Advisory messages are enabled (as they are by
default), all of the subscriptions will just work.

On Thu, Oct 2, 2014 at 10:14 AM, juanmanuel.romeraferrio <
juanmanuel.romerafer...@gmail.com> wrote:

> Thanks for the reply,
>
> I have a doubt, I in my client define a broker that have a netwotk
> connector
> to my activeMQServer (is a name).
>
> In my activeMQServer, Would I need define a broker that listen this
> message?
> I could define a broker to listen and then then other that have netwotk
> connector to send the message to other cluster?
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Question-about-Network-Brokers-tp4686054p4686102.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>


Re: Question about Network Brokers

2014-10-02 Thread juanmanuel.romeraferrio
Thanks for the reply,

I have a doubt, I in my client define a broker that have a netwotk connector
to my activeMQServer (is a name).

In my activeMQServer, Would I need define a broker that listen this message?
I could define a broker to listen and then then other that have netwotk
connector to send the message to other cluster?





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Question-about-Network-Brokers-tp4686054p4686102.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Question about Network Brokers

2014-10-01 Thread Tim Bain
You could have Version 1 producers send to a different destination than
Version 2 producers, and have the Version 1 consumers connect to Server 1
and the Version 2 consumers connect to Server 2.  Or you could set a
version number as an attribute on the message and then have the consumers
use message selectors to only get the messages with the correct version.
Either approach would work, and wouldn't require any special configuration
in the brokers (and the producer/consumer configuration would be simple).
And both of those approaches could be used without needing two separate
brokers, if you didn't want to have two.

You can run multiple ActiveMQ brokers on the same machine, as long as you
make sure you customize the ports so they don't conflict.

Tim

On Wed, Oct 1, 2014 at 8:07 AM, juanmanuel.romeraferrio <
juanmanuel.romerafer...@gmail.com> wrote:

> Hi, I'm new with ActiveMQ. I'm starting to use for resolve a problem in my
> system. I have 1000 clients that send message to different servers. For
> resolve that I thougth in an architecture with the next.
>
> - In the clients configure a Broker with network connector to a
> master/slave
> broker.
> - In the master/slave broker, I need read a property of the message
> "version", and according this value I need redirect the message to a
> remote cluster.
>
> Example version 1 -Cluster 1, version2 -> Cluster 2.
>
> I don't know how resolve that, I thougt that I can configure a broker in
> each cluster, and send the message to the master/slave cluster to the
> other,
> but I can't configure that, I can't start up 2 brokers in a vm, this is
> rigth?
>
> I would need something like this
>
>
> Client 1 (Version 1) message->   Cluster master/slave broker
> --message> Server 1
> Client 2 (Version 2) message->   Cluster master/slave broker
> --message> Server 2
>
> How could it?
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Question-about-Network-Brokers-tp4686054.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>