You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jpoloney <jp...@gmail.com> on 2008/10/12 01:03:56 UTC

Store and forward not working?

I've been trying to figure out how to get the store and forward to work, and
I don't think it's working. I have 2 queues (ActiveMQ 5.1.0). Queue 1 has an
IP of 10.17.48.91 and Queue 2 has an IP of 10.17.48.92. I've attached my
activemq.xml file for Queue 1. Queue 2 is using the same configuration
except the IP address in the <networkConnector> has the other IP in it.

I've tried multicast, adding 1 IP address to the <networkConnector>, adding
both IP addresses to the <networkConnector>, etc. I've tried everything I
could think of. Nothing seems to work. Is there something that I'm doing
wrong?

I can tell it's not working because I have pending messages on 1 of the
queues and a consumer on the other, and it's not sending the messages (this
is how it's supposed to work, correct?).

Thanks,

-- Joel

http://www.nabble.com/file/p19937282/queue1.xml queue1.xml 


-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19937282.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by jpoloney <jp...@gmail.com>.
Yeah, the web console is terrible. I don't trust it all anymore. Which kind
of sucks because reported numbers like pending count, number of consumers,
etc are nice to know.

Sigh, I'll try testing it again with a test queue and see if the load
balancing is happening correctly.

Thanks for the help,

-- Joel


ammulder wrote:
> 
> I don't see anything obviously wrong with the config files.  I
> normally give each networkConnector a unique name attribute, but I
> don't think that would cause it to not work.  I don't typically use
> the Web console, though (I think issues like the negative message
> count are known) -- to test it "the old-fashioned way" I'd just send
> messages to one of the brokers and attach listeners to both brokers
> and make sure each listener sees some messages.  You may have to send
> a large number of messages to see significant "load balancing" across
> the network, though.  (I know there are some settings that affect
> this, but as I recall the default is not to always send messages to
> local clients so I would expect to see some load balancing happening.)
> 
> Thanks,
>        Aaron
> 

-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19965293.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
I don't see anything obviously wrong with the config files.  I
normally give each networkConnector a unique name attribute, but I
don't think that would cause it to not work.  I don't typically use
the Web console, though (I think issues like the negative message
count are known) -- to test it "the old-fashioned way" I'd just send
messages to one of the brokers and attach listeners to both brokers
and make sure each listener sees some messages.  You may have to send
a large number of messages to see significant "load balancing" across
the network, though.  (I know there are some settings that affect
this, but as I recall the default is not to always send messages to
local clients so I would expect to see some load balancing happening.)

Thanks,
       Aaron

On Mon, Oct 13, 2008 at 4:58 PM, jpoloney <jp...@gmail.com> wrote:
>
> I rebooted queue1 and looked in the data/activemq.log file and saw the
> following line:
>
> 2008-10-13 13:55:45,311 [$Worker@17b1d64] INFO  DemandForwardingBridge
> - Network connection between vm://queue1#0 and
> tcp:///10.17.48.92:61616(queue2) has been established.
>
> Does this mean that it's working? How would I test it? I'm looking at the
> pending messages on the web console, and they're all over the place. I
> really don't get how it works (sometimes I have negative pending messages?)
> Is there any good way to determine that it's actually working?
>
> Thanks,
>
> -- Joel
>
>
> jpoloney wrote:
>>
>> Here they are:
>>
>>  http://www.nabble.com/file/p19962668/queue1.xml queue1.xml
>>  http://www.nabble.com/file/p19962668/queue2.xml queue2.xml
>>
>> Thanks,
>>
>> -- Joel
>>
>>
>> ammulder wrote:
>>>
>>> Could you post the config files for both servers just for a sanity check?
>>>
>>> Thanks,
>>>       Aaron
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19962811.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>

Re: Store and forward not working?

Posted by jpoloney <jp...@gmail.com>.
I rebooted queue1 and looked in the data/activemq.log file and saw the
following line:

2008-10-13 13:55:45,311 [$Worker@17b1d64] INFO  DemandForwardingBridge        
- Network connection between vm://queue1#0 and
tcp:///10.17.48.92:61616(queue2) has been established.

Does this mean that it's working? How would I test it? I'm looking at the
pending messages on the web console, and they're all over the place. I
really don't get how it works (sometimes I have negative pending messages?)
Is there any good way to determine that it's actually working?

Thanks,

-- Joel


jpoloney wrote:
> 
> Here they are:
> 
>  http://www.nabble.com/file/p19962668/queue1.xml queue1.xml 
>  http://www.nabble.com/file/p19962668/queue2.xml queue2.xml 
> 
> Thanks,
> 
> -- Joel
> 
> 
> ammulder wrote:
>> 
>> Could you post the config files for both servers just for a sanity check?
>> 
>> Thanks,
>>       Aaron
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19962811.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by jpoloney <jp...@gmail.com>.
Here they are:

http://www.nabble.com/file/p19962668/queue1.xml queue1.xml 
http://www.nabble.com/file/p19962668/queue2.xml queue2.xml 

Thanks,

-- Joel


ammulder wrote:
> 
> Could you post the config files for both servers just for a sanity check?
> 
> Thanks,
>       Aaron
> 
> 

-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19962668.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Could you post the config files for both servers just for a sanity check?

Thanks,
      Aaron

On Mon, Oct 13, 2008 at 4:15 PM, jpoloney <jp...@gmail.com> wrote:
>
> Yes, I can telnet into the IP addresses from both machines. So, queue1 can
> telnet into queue2 and queue2 and telnet into queue1. When I telnet in, I
> can see messages going across and various output and stuff.
>
> -- Joel
>
>
> bsnyder wrote:
>>
>> Can you see the ActiveMQ port from each machine via ping and/or telnet?
>>
>> Bruce
>>
>
> --
> View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19962054.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>

Re: Store and forward not working?

Posted by jpoloney <jp...@gmail.com>.
Yes, I can telnet into the IP addresses from both machines. So, queue1 can
telnet into queue2 and queue2 and telnet into queue1. When I telnet in, I
can see messages going across and various output and stuff.

-- Joel


bsnyder wrote:
> 
> Can you see the ActiveMQ port from each machine via ping and/or telnet?
> 
> Bruce
> 

-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19962054.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by Bruce Snyder <br...@gmail.com>.
On Mon, Oct 13, 2008 at 12:35 PM, jpoloney <jp...@gmail.com> wrote:
>
> It is set to "queue2". All of the properties are set to what you would think
> they are (for each queue). I double checked again and there aren't any
> mistakes.
>
> Thoughts?

Can you see the ActiveMQ port from each machine via ping and/or telnet?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/

Blog: http://bruceblog.org/

Re: Store and forward not working?

Posted by jpoloney <jp...@gmail.com>.
It is set to "queue2". All of the properties are set to what you would think
they are (for each queue). I double checked again and there aren't any
mistakes.

Thoughts?


Joe Fernandez wrote:
> 
> Make sure that your brokerName property for Queue 2 is set to "queue2" and
> not "queue1". 
> 
> <broker brokerName="queue2" useJmx="true" persistent="true"
> dataDirectory="/data/activemq">
> 
-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19961365.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Store and forward not working?

Posted by Joe Fernandez <jo...@ttmsolutions.com>.
Make sure that your brokerName property for Queue 2 is set to "queue2" and
not "queue1". 

<broker brokerName="queue2" useJmx="true" persistent="true"
dataDirectory="/data/activemq">

Joe
Get a free ActiveMQ user guide @ http://www.ttmsolutions.com



jpoloney wrote:
> 
> I've been trying to figure out how to get the store and forward to work,
> and I don't think it's working. I have 2 queues (ActiveMQ 5.1.0). Queue 1
> has an IP of 10.17.48.91 and Queue 2 has an IP of 10.17.48.92. I've
> attached my activemq.xml file for Queue 1. Queue 2 is using the same
> configuration except the IP address in the <networkConnector> has the
> other IP in it.
> 
> I've tried multicast, adding 1 IP address to the <networkConnector>,
> adding both IP addresses to the <networkConnector>, etc. I've tried
> everything I could think of. Nothing seems to work. Is there something
> that I'm doing wrong?
> 
> I can tell it's not working because I have pending messages on 1 of the
> queues and a consumer on the other, and it's not sending the messages
> (this is how it's supposed to work, correct?).
> 
> Thanks,
> 
> -- Joel
> 
>  http://www.nabble.com/file/p19937282/queue1.xml queue1.xml 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Store-and-forward-not-working--tp19937282p19947627.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.