You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by garima015 <ga...@rediffmail.com> on 2007/03/14 18:36:24 UTC

Re: [Spam: 5.0] Broker issue regarding queue

Thanks for reply.But how the two borkers will have the queues.
When connecting to one the queues are getting created on it but when
connected to second one on failure there are no queue on that.
Does that need to implement master slave broker.Does it require any database
or it will use derby by default.



James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> Hi,
>>
>> I have a set up of two brokers in network through the URL
>> failover:(tcp://host1:61616,tcp://host2:61616)?randomize=false
> 
> Store & forward networks are setup by connecting two brokers together.
> The failover: URI is for the client to fail over to multiple brokers
> (which is a different thing entirely)
> 
> 
>> When i am shutting down the first broker my producers and consumer
>> classes
>> are getting connected to second broker.But only the temporary queues are
>> retained . My permanent queues are not getting transfered to second
>> broker.
>> I am craeting queues using this code
>> Destination requestQueue = session.createQueue(requestQueueName);
>> and
>> replyQueue = session.createTemporaryQueue();
>>
>>
>> Any one can please tell me if i am missing and doing something worng.
> 
> Networks do store and forward - here's how you set them up...
> http://activemq.apache.org/networks-of-brokers.html
> 
> If you want high availability (so messages that were on the primary
> broker are replicated to the secondary broker) then you want to
> configure Master/Slave instead...
> 
> http://activemq.apache.org/masterslave.html
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9479510
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by garima015 <ga...@rediffmail.com>.
when i am manually shutting down the broker 1 my application is getting
connected to second broker 
but console of first broker is showing exception.It does not have a clean
exit 

"WARN  DemandForwardingBridge  - Caught exception from local start 
java.io.IOException: Transport disposed." 

Is it a kind of problem. 

How much usually application should take to resume the connection to second
broker upon failure of first. 

Thanks 


James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> Thanks for reply.But how the two borkers will have the queues.
>> When connecting to one the queues are getting created on it but when
>> connected to second one on failure there are no queue on that.
>> Does that need to implement master slave broker.Does it require any
>> database
>> or it will use derby by default.
> 
> More background here...
> http://cwiki.apache.org/ACTIVEMQ/how-do-i-configure-distributed-queues-or-topics.html
> 
> you might wanna read most of those linked pages too
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9482286
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by garima015 <ga...@rediffmail.com>.
I am using activemq 4.1.0 version.In my network of two brokers,
When i brings down one broker i am getting

INFO  FailoverTransport              - Transport failed, attempting to
automatically reconnect due to: java.io.EOFException

on the second broker console.
Is this a problem in failover and reconnection.But my queues are visible on
second broker

Thanks



James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> when i am manually shutting down the broker 1 my application is getting
>> connected to second broker
>> but console of first broker is showing exception.It does not have a clean
>> exit
>> WARN  DemandForwardingBridge         - Caught exception from local start
>> java.io.IOException: Transport disposed.
>>
>> Is it a kind of problem.
> 
> No - just a timing issue, nothing to worry about.
> 
>> How much usually application should take to resume the connection to
>> second
>> broker upon failure of first.
> 
> A client should reconnect to another broker after the broker has died
> within a second; assuming that the client can detect the socket has
> died. On some platforms it can take hours or days for the OS to notify
> a process that the socket has died; if so you might want to use an
> inactivity timeout (which is set to 30 seconds by default)
> http://activemq.apache.org/configuring-wire-formats.html
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9495188
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by James Strachan <ja...@gmail.com>.
On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>
> when i am manually shutting down the broker 1 my application is getting
> connected to second broker
> but console of first broker is showing exception.It does not have a clean
> exit
> WARN  DemandForwardingBridge         - Caught exception from local start
> java.io.IOException: Transport disposed.
>
> Is it a kind of problem.

No - just a timing issue, nothing to worry about.

> How much usually application should take to resume the connection to second
> broker upon failure of first.

A client should reconnect to another broker after the broker has died
within a second; assuming that the client can detect the socket has
died. On some platforms it can take hours or days for the OS to notify
a process that the socket has died; if so you might want to use an
inactivity timeout (which is set to 30 seconds by default)
http://activemq.apache.org/configuring-wire-formats.html


-- 

James
-------
http://radio.weblogs.com/0112098/

Re: [Spam: 5.0] Broker issue regarding queue

Posted by garima015 <ga...@rediffmail.com>.
when i am manually shutting down the broker 1 my application is getting
connected to second broker
but console of first broker is showing exception.It does not have a clean
exit
WARN  DemandForwardingBridge         - Caught exception from local start
java.io.IOException: Transport disposed.

Is it a kind of problem.

How much usually application should take to resume the connection to second
broker upon failure of first.

Thanks


James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> I have one more problem related to this
>> I am giving the url as
>> BROKER_IP_ADDRESS=failover:(tcp://172.31.19.209:61616,tcp://172.31.19.210:61616)?randomize=false
>>
>> in my configuration file which is read by my Producer class for activemq
>> connection.
>> I want that it should connect to second broker in case of failure and
>> also
>> my processing should not stop
>> Can you please tell me if i have to give "static" here also.
> 
> No - the above URL looks fine to me.
> http://activemq.apache.org/failover-transport-reference.html
> 
>> How are the network of brokers joined in configuration rather than using
>> activemq.xml
> 
> They are configured in activemq.xml as described on the page I gave
> you in the previous reply
> http://activemq.apache.org/networks-of-brokers.html
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9482155
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by garima015 <ga...@rediffmail.com>.
when i am manually shutting down the broker 1 my application is getting
connected to second broker 
but console of first broker is showing exception.It does not have a clean
exit 
WARN  DemandForwardingBridge         - Caught exception from local start 
java.io.IOException: Transport disposed. 

Is it a kind of problem. 

How much usually application should take to resume the connection to second
broker upon failure of first. 

Thanks 



James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> I have one more problem related to this
>> I am giving the url as
>> BROKER_IP_ADDRESS=failover:(tcp://172.31.19.209:61616,tcp://172.31.19.210:61616)?randomize=false
>>
>> in my configuration file which is read by my Producer class for activemq
>> connection.
>> I want that it should connect to second broker in case of failure and
>> also
>> my processing should not stop
>> Can you please tell me if i have to give "static" here also.
> 
> No - the above URL looks fine to me.
> http://activemq.apache.org/failover-transport-reference.html
> 
>> How are the network of brokers joined in configuration rather than using
>> activemq.xml
> 
> They are configured in activemq.xml as described on the page I gave
> you in the previous reply
> http://activemq.apache.org/networks-of-brokers.html
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9482200
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by James Strachan <ja...@gmail.com>.
On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>
> I have one more problem related to this
> I am giving the url as
> BROKER_IP_ADDRESS=failover:(tcp://172.31.19.209:61616,tcp://172.31.19.210:61616)?randomize=false
>
> in my configuration file which is read by my Producer class for activemq
> connection.
> I want that it should connect to second broker in case of failure and also
> my processing should not stop
> Can you please tell me if i have to give "static" here also.

No - the above URL looks fine to me.
http://activemq.apache.org/failover-transport-reference.html

> How are the network of brokers joined in configuration rather than using
> activemq.xml

They are configured in activemq.xml as described on the page I gave
you in the previous reply
http://activemq.apache.org/networks-of-brokers.html

-- 

James
-------
http://radio.weblogs.com/0112098/

Re: [Spam: 5.0] Broker issue regarding queue

Posted by garima015 <ga...@rediffmail.com>.
I have one more problem related to this
I am giving the url as 
BROKER_IP_ADDRESS=failover:(tcp://172.31.19.209:61616,tcp://172.31.19.210:61616)?randomize=false

in my configuration file which is read by my Producer class for activemq
connection.
I want that it should connect to second broker in case of failure and also
my processing should not stop
Can you please tell me if i have to give "static" here also.
How are the network of brokers joined in configuration rather than using
activemq.xml

thanks


James.Strachan wrote:
> 
> On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>>
>> Thanks for reply.But how the two borkers will have the queues.
>> When connecting to one the queues are getting created on it but when
>> connected to second one on failure there are no queue on that.
>> Does that need to implement master slave broker.Does it require any
>> database
>> or it will use derby by default.
> 
> More background here...
> http://cwiki.apache.org/ACTIVEMQ/how-do-i-configure-distributed-queues-or-topics.html
> 
> you might wanna read most of those linked pages too
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Broker-issue-regarding-queue-tf3402927s2354.html#a9481726
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Broker issue regarding queue

Posted by James Strachan <ja...@gmail.com>.
On 3/14/07, garima015 <ga...@rediffmail.com> wrote:
>
> Thanks for reply.But how the two borkers will have the queues.
> When connecting to one the queues are getting created on it but when
> connected to second one on failure there are no queue on that.
> Does that need to implement master slave broker.Does it require any database
> or it will use derby by default.

More background here...
http://cwiki.apache.org/ACTIVEMQ/how-do-i-configure-distributed-queues-or-topics.html

you might wanna read most of those linked pages too

-- 

James
-------
http://radio.weblogs.com/0112098/