You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by RJPercival <ro...@gmail.com> on 2013/08/12 11:01:34 UTC

AMQP Bridge

I've been attempting to configure a static bridge between two brokers (I want
any messages received on a local broker to immediately be forwarded to a
remote broker if it's available). If I use OpenWire, i.e. a
"static:(tcp://1.2.3.4:61616)" URL, it works, but if I change that URL to
"static:(amqp://1.2.3.4:5672)" in order to use AMQP it doesn't. This is a
problem because, in the production environment, the remote broker is out of
my control and only accepts AMQP connections. Is this a supported
configuration or is OpenWire the only way to have a static bridge?



--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670273.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: AMQP Bridge

Posted by Robert Davies <ra...@gmail.com>.
You can look at https://github.com/rajdavies/activemq-anywhere-example for examples of setting up the Camel routes

On 12 Aug 2013, at 15:58, RJPercival <ro...@gmail.com> wrote:

> No, the remote broker isn't guaranteed to be ActiveMQ so the bridge has to be
> over AMQP 1.0 rather than OpenWire. I'll look into using Camel instead then,
> thanks.
> 
> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670286.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQP Bridge

Posted by Christian Posta <ch...@gmail.com>.
You should be able to use the qpid-jms libs which do support the 1.0
protocol:

http://qpid.apache.org/components/qpid-jms/index.html


On Mon, Aug 12, 2013 at 8:26 AM, RJPercival <ro...@gmail.com>wrote:

> Unfortunately, a quick search reveals that Camel does not yet support AMQP
> 1.0 (https://issues.apache.org/jira/browse/CAMEL-5891). Presumably this
> makes establishing a bridge over AMQP 1.0 extremely difficult?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670288.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: AMQP Bridge

Posted by Robert Davies <ra...@gmail.com>.
As I said - have a look at https://github.com/rajdavies/activemq-anywhere-example - it uses JMS over AMQP 1.0 with Camel 

On 12 Aug 2013, at 16:26, RJPercival <ro...@gmail.com> wrote:

> Unfortunately, a quick search reveals that Camel does not yet support AMQP
> 1.0 (https://issues.apache.org/jira/browse/CAMEL-5891). Presumably this
> makes establishing a bridge over AMQP 1.0 extremely difficult?
> 
> 
> 
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670288.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: AMQP Bridge

Posted by James Strachan <ja...@gmail.com>.
That issue is about the AMQP camel component; the activemq camel
component can connect to ActiveMQ through any ActiveMQ client
supporting URL

On 12 August 2013 16:26, RJPercival <ro...@gmail.com> wrote:
> Unfortunately, a quick search reveals that Camel does not yet support AMQP
> 1.0 (https://issues.apache.org/jira/browse/CAMEL-5891). Presumably this
> makes establishing a bridge over AMQP 1.0 extremely difficult?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670288.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
James
-------
Red Hat

Email: jstracha@redhat.com
Web: http://fusesource.com
Twitter: jstrachan, fusenews
Blog: http://macstrac.blogspot.com/

Open Source Integration

Re: AMQP Bridge

Posted by RJPercival <ro...@gmail.com>.
Unfortunately, a quick search reveals that Camel does not yet support AMQP
1.0 (https://issues.apache.org/jira/browse/CAMEL-5891). Presumably this
makes establishing a bridge over AMQP 1.0 extremely difficult?



--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670288.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: AMQP Bridge

Posted by Christian Posta <ch...@gmail.com>.
Sorry, to be more clear, the network of brokers only works for
openwire-based protocols. Any other sort of bridging should be done with
Camel.

Cheers


On Mon, Aug 12, 2013 at 7:58 AM, RJPercival <ro...@gmail.com>wrote:

> No, the remote broker isn't guaranteed to be ActiveMQ so the bridge has to
> be
> over AMQP 1.0 rather than OpenWire. I'll look into using Camel instead
> then,
> thanks.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670286.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: AMQP Bridge

Posted by RJPercival <ro...@gmail.com>.
No, the remote broker isn't guaranteed to be ActiveMQ so the bridge has to be
over AMQP 1.0 rather than OpenWire. I'll look into using Camel instead then,
thanks.



--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670281p4670286.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: AMQP Bridge

Posted by Christian Posta <ch...@gmail.com>.
The networking bridge will expect speak to openwire (or an
openwire-compatible protocol... eg, openwire over HTTP) to another ActiveMQ
broker on the other side.

Is this your case? If not, try using Apache Camel to bridge the two.



On Mon, Aug 12, 2013 at 2:01 AM, RJPercival <ro...@gmail.com>wrote:

> I've been attempting to configure a static bridge between two brokers (I
> want
> any messages received on a local broker to immediately be forwarded to a
> remote broker if it's available). If I use OpenWire, i.e. a
> "static:(tcp://1.2.3.4:61616)" URL, it works, but if I change that URL to
> "static:(amqp://1.2.3.4:5672)" in order to use AMQP it doesn't. This is a
> problem because, in the production environment, the remote broker is out of
> my control and only accepts AMQP connections. Is this a supported
> configuration or is OpenWire the only way to have a static bridge?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/AMQP-Bridge-tp4670273.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta