activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lei <lehu...@paypal.com>
Subject producer got "connection refused" when broker uses proxyconnector
Date Thu, 24 Feb 2011 10:27:03 GMT

Hi,
I have a broker with proxyconnector as following:
<broker>
    <persistenceAdapter>
       <jdbcPersistenceAdapter dataDirectory="${activemq.base}/data"
dataSource="#oracle-ds"/>
    </persistenceAdapter>

    <proxyConnectors>
      <proxyConnector bind="tcp://localhost:6002"
remote="failover:(tcp://remotehost:61618)" proxyToLocalBroker="true"/>
    </proxyConnectors>

    <transportConnectors>
       <transportConnector uri="tcp://localhost:61618"/>
    </transportConnectors>
</broker>

I saw the proxy connector was started in the broker log:

2011-02-24 01:56:04,600 | INFO  | Connector tcp://10.15.8.201:61618 Started
| org.apache.activemq.broker.TransportConnector | main
2011-02-24 01:56:04,608 | INFO  | Listening for connections at:
tcp://10.15.8.201:6002 |
org.apache.activemq.transport.TransportServerThreadSupport | main
2011-02-24 01:56:04,609 | INFO  | Proxy Connector proxy Started |
org.apache.activemq.proxy.ProxyConnector | main

And I use the producer in the example folder coming along with the activemq
distribution. In the producer/client, I have this as the connection url:
<property name="url" value="tcp://10.15.8.201:6002"/>

But when I run the producer, it gives the following error.

Anybody has any idea what I did wrong?

Thanks,
Lei

[java] [Thread-1] Caught: javax.jms.JMSException: Could not connect to
broker URL: tcp://10.15.8.201:6002. Reason: java.net.ConnectException:
Connection refused
     [java] javax.jms.JMSException: Could not connect to broker URL:
tcp://10.15.8.201:6002. Reason: java.net.ConnectException: Connection
refused
     [java]     at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
     [java]     at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
     [java]     at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
     [java]     at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
     [java]     at ProducerTool.run(Unknown Source)
     [java] Caused by: java.net.ConnectException: Connection refused
     [java]     at java.net.PlainSocketImpl.socketConnect(Native Method)
     [java]     at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     [java]     at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
     [java]     at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
     [java]     at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
     [java]     at java.net.Socket.connect(Socket.java:519)
     [java]     at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
     [java]     at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
     [java]     at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
     [java]     at
org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)
     [java]     at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
     [java]     at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
     [java]     at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
     [java]     at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
     [java]     at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
     [java]     ... 3 more

-- 
View this message in context: http://activemq.2283324.n4.nabble.com/producer-got-connection-refused-when-broker-uses-proxyconnector-tp3322375p3322375.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message