[rabbitmq-discuss] Rest services to get messages from Queue
Alvaro Videla
videlalvaro at gmail.com
Thu May 1 21:25:59 BST 2014
Is there a reason why you are doing this via REST which is very slow
compared to using a default AMQP consumer?
On Thu, May 1, 2014 at 7:25 PM, Srinath Sridharan -X (srinatsr -
ZENSAR TECHNOLOGIES INC at Cisco) <srinatsr at cisco.com> wrote:
> Hello,
>
>
>
> I couldn’t hit this service from Java Class. But I could hit through rest
> client Url : http://qot-job-03:15672/api/queues/%2F/validate.monitor/get
>
>
>
> I know the issue with url encoding and decoding.
>
>
>
>
>
> String url
> ="http://qot-job-03:15672/api/queues/%2F/validate.monitor/get";
>
>
>
> try {
>
> result = restTemplate.exchange(url, HttpMethod.POST,
> entity, QueueMonitorRespone.class);
>
> System.out.println("Sample Response ::
> "+result.getBody());
>
>
>
> }
>
> catch (HttpClientErrorException e) {
>
> e.printStackTrace();
>
> }
>
> Please need your help to resolve this.
>
>
>
> As per above code, the url is taking something like
> http://qot-job-03:15672/api/queues/%252F/validate.monitor/get because “%” is
> decoded as “%25” and don’t want this to happen.
>
>
>
> Request Json :
>
>
>
> {"vhost":"/","name":"validate.monitor","truncate":"50000","requeue":"true","encoding":"auto","count":"1000"}
>
> Regards …?
>
> Srinath
>
>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
More information about the rabbitmq-discuss
mailing list