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
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...