Failover support for activemq REST api

2019-07-21 12:02发布

I am using activemq using a custom message servlet through REST api. For message retrieval url typically looks like "http://localhost:8161/MessageServlet/MessageServlet?destination=queue://test.queue&clientId=Tester".

I am trying incorporate failover mechanism using pure master slave mode("http://activemq.apache.org/pure-master-slave.html").

I have already configured my master slave and it is running using jms connection.

My question is, what should be my failover url look like when i am uisng REST api.

Thanks in advance.

Regards, Arijit

标签: activemq
1条回答
【Aperson】
2楼-- · 2019-07-21 12:28

From the REST client perspective, you'll need to abstract the requests (proxy URL) or handle the failover of the client connection using 3rd party libraries (see HttpClient failover support, etc.)

If you go with the abstraction approach, then consider doing one of the following to proxy the requests to AMQ and provide failover support...

查看更多
登录 后发表回答