简体   繁体   中英

JMS ActiveMQ SpringBoot .FailoverTransport

iam trying to connected to remote broker url in activeMQ (activemq installed in unix vm)

iam able to connect from browser from my laptop.

while running springboot iam getting this error

--- [ActiveMQ Task-1] oaatfailover.FailoverTransport : Failed to connect to [tcp:// http://199.247.18.11:61616] after: 8 attempt(s) continuing to retry.

what could be the issue?

Please remove https:// from your connection string. Port 61616 is expecting JMS connections.

Your connection string should be tcp://199.247.18.11:61616 or something similar. There is a rest API that (I think) goes through the built in HTTP server but it's not going to listen on 61616 and it's going to have a much longer URL. Something like

http://admin:admin@localhost:8161/api/message?destination=queue://myqueue

still issue yml file activemq: broker-url: failover:(tcp:// http://199.247.18.11:61616)?initialReconnectDelay=1000&maxReconnectDelay=60000&warnAfterReconnectAttempts=2

error: 2018-05-01 07:41:51.312 WARN 6560 --- [ActiveMQ Task-1] oaatfailover.FailoverTransport : Failed to connect to [tcp:// http://199.247.18.11:61616] after: 2 attempt(s) continuing to retry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM