Hi Ted

Thanks for the help, I'll try out that config and see what happens.
In the meantime, I caused the segfault by entering a partial example (taken
from
http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-to-ActiveMQ-td7624037.html#a7624153
)

The actual content I used was similar to:

connector {
    name: broker1
    role: on-demand
    addr: 10.64.30.142
    port: 5676
    sasl-mechanisms: ANONYMOUS
}

connector {
    name: broker2
    role: on-demand
    addr: 10.64.30.142
    port: 5675
    sasl-mechanisms: ANONYMOUS
}


In other words, I missed out the 'linkRoutePattern' sections from the
bottom of the example given on that page.
I did that because the dispatcher complained of a syntax error, somewhere
in the config, and I was trying to pinpoint the location.

Then I removed one of these 'connector' sections and tried again - the
segfault also occurred.
Then I emptied the remaining one, so the whole file was just

connector {
}

...and the segfault also occurred again.

cheers

On 31 August 2016 at 13:11, Ted Ross <[email protected]> wrote:

>
> On 08/31/2016 07:46 AM, Vince Cole wrote:
>
>> Hi
>>
>> I want to route AMQP 1.0 messages from a named queue/topic on a remote
>> 'source' broker, to a queue/topic (name doesn't matter, can be the same as
>> the source for simplicity) on a remote 'destination' broker, on Linux
>> (Centos 7.0) using qdrouterd.
>>
>> Is this possible?
>> Is there an example of a qdrouterd config file that does this?
>>
>> So far, my attempts at a config file are either rejected by qdrouterd or
>> cause it to segfault.
>> Clearly, I must be making some fundamental errors, but I can't find a
>> basic
>> guide anywhere.
>> The online docs and manpages seem to assume that the reader has quite
>> advanced knowledge of the qpid system already. I have none.
>>
>> FYI, the source broker is Qpid (cpp) 0.34 and the destination broker is
>> ActiveMQ 5.14 but I guess this shouldn't make much difference...?
>>
>> Thanks in anticipation
>>
>>
> Vince,
>
> Thanks for your feedback.  I'd be interested in seeing the configurations
> that caused the router to segfault.
>
> Your scenario should work.  I've just tried it with one router and two
> qpidd brokers.
>
> First create two connectors to establish connections to the source and
> destination brokers.  These connectors must have the role "route-container"
> because they will be used with auto-links.
>
> Then create two auto-links, one for pulling messages from the source queue
> and one for delivering messages to the destination queue.  If you have more
> than one queue/topic, add a pair of auto-links for each.  Note that the
> auto-links have phase set explicitly to "0".  This is needed for auto-link
> to auto-link transfer.
>
> In this example, the name of the queue is "transfer-queue".  As of version
> 0.6.1, they need to have the same name.  There is a roadmap feature planned
> that will allow the names to be different.
>
> connector {
>     addr: 127.0.0.1
>     port: 20000
>     name: source-broker
>     role: route-container
> }
>
> connector {
>     addr: 127.0.0.1
>     port: 20001
>     name: destination-broker
>     role: route-container
> }
>
> autoLink {
>     addr: transfer-queue
>     connection: source-broker
>     dir: in
>     phase: 0
> }
>
> autoLink {
>     addr: transfer-queue
>     connection: destination-broker
>     dir: out
>     phase: 0
> }
>
> -Ted
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to