[rabbitmq-discuss] Rest services to get messages from Queue

Srinath Sridharan -X (srinatsr - ZENSAR TECHNOLOGIES INC at Cisco) srinatsr at cisco.com
Thu May 1 21:31:53 BST 2014


Yes.  I have binded my queue with trace and log exchange, so I need to get all information and logging those message

Regards ……
Srinath


-----Original Message-----
From: rabbitmq-discuss [mailto:rabbitmq-discuss-bounces at lists.rabbitmq.com] On Behalf Of Alvaro Videla
Sent: Thursday, May 01, 2014 1:26 PM
To: Discussions about RabbitMQ
Subject: Re: [rabbitmq-discuss] Rest services to get messages from Queue

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":"t
> rue","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
>
_______________________________________________
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