activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: ActiveMQ Brokers using HTTP to communicate
Date Thu, 20 Aug 2009 08:45:04 GMT
Hi,

you need to start transport connectors as well.

Take a look at these configurations used in a test case for example

http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/usecases/sender-http.xml?r=HEAD
http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/usecases/receiver-http.xml?r=HEAD

Cheers
--
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Thu, Aug 20, 2009 at 3:58 AM, lyall <Lyall@the-pearces.com> wrote:

>
> G'day.
>
> I have ActiveMQ 5.1 working just fine using autodiscovery and multicast.
>
> I would like to configure 2 ActiveMQ 5.1 brokers to talk to each other
> using
> HTTP port 80, to make it easy with regards to firewalls. I assume this is
> possible, I see talk about client -> Broker using HTTP and have seen posts
> on Broker -> Broker using HTTP, but no concrete 'howto', that I have found,
> so far.
>
> At this time, each ActiveMQ is running on it's own server, with no other
> http server, so port 80 is ok for ActiveMQ to use, although, I would like
> to
> know if I can integrate ActiveMQ into an existing HTTP server (httpd) such
> that they communicate with each other via a more complete url, rather than
> simply address:port using http.
>
>
> I figured if I edited activemq.xml and commented out
>  <networkConnector name="default-nc" uri="multicast://default"/>
> and replaced it with something like
>  <networkConnector name="Broker1 and Broker2"
> uri="static://(http://192.168.0.5:80,http://192.168.1.5:80)"/>
> I might get some joy, but I keep receiving a connection refused.
>
>   WARN  DiscoveryNetworkConnector      - Could not start network bridge
> between: vm://this-one and: http://192.168.1.5:80 due to:
> java.net.ConnectException: Connection refused: connect
>
> Is there some other step I should be doing? Maybe a jar from the
> lib/optional directory needs to be moved up into the lib directory?
>
> Thanks, in advance.
>
> ...Lyall
> --
> View this message in context:
> http://www.nabble.com/ActiveMQ-Brokers-using-HTTP-to-communicate-tp25054814p25054814.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message