Network connections at the moment are one-way afaik. You would need to
create a network connection from the remote broker to the embedded
broker to be able to receive messages to the embedded broker. I think
there's a jira to make it two-way, but I can't remember the number... sorry.

Dingwen Yuan wrote:
> Thank you Adrian,
>
> I have tried as you suggested, it worked for Topic, but not queue.
> The following is the code for embedded broker.  As you see, I have connected 
> embedded broker to the broker at 61616. When I send a topic, the client 
> connected to 61616 can receive it, but I can not recieved the queue message 
> sent by the client on 61616.
>     embeddedBroker = new BrokerService();
>    NetworkConnector connector = 
> embeddedBroker.addNetworkConnector("static:(tcp://127.0.0.1:61616)");
>    connector.setNetworkTTL(2);
>    connector.setDynamicOnly(true);
>    embeddedBroker.start();
>
>
>
>
> Dingwen Yuan
> 2007-05-09
>
>
>
> 发件人: Adrian Co
> 发送时间: 2007-05-09 13:27:02
> 收件人: users@activemq.apache.org
> 抄送: 
> 主题: Re: Way to know whether failover client is connecting?
>
> A FailoverListener would be interesting, but afaik, its not provided.
>
> Dingwen Yuan wrote:
>   
>> But what is the programmable way to know it?
>>
>>
>>
>>
>> Dingwen Yuan
>> 2007-05-09
>>
>>
>>
>> 发件人: spiderman2
>> 发送时间: 2007-05-09 11:43:31
>> 收件人: users@activemq.apache.org
>> 抄送: 
>> 主题: Re: Way to know whether failover client is connecting?
>>
>>
>> When I kill the broker to test a failover, I believe the Consumer's logs show
>> it trying to failover to another broker.
>>
>>
>>
>> Dingwen Yuan wrote:
>>   
>>     
>>> Hi all,
>>>
>>> Is there a way to know that a failover ActiveMQ client is now trying to
>>> connect to the brokers?
>>>
>>> Thank you!
>>>
>>>
>>>
>>>
>>> Dingwen Yuan
>>> 2007-05-09
>>>
>>>
>>>     
>>>       
>>   
>>     
>
> !DSPAM:507,46417008227071855215190!
>
>   

Reply via email to