<html><head></head><body bgcolor="#FFFFFF"><div>Or you can use Simon's plugin and sent the json encoded commands to the management exchange.<br></div><div><br>On 17 Oct 2013, at 15:11, Gary Russell <<a href="mailto:grussell@gopivotal.com">grussell@gopivotal.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">Spring AMQP does not provide a mechanism itself to do this, but the core Spring Framework has a RestTemplate to enable calls to any rest API, including that provided by RabbitMQ.<div><br></div><div><a href="http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/remoting.html#rest-client-access">http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/html/remoting.html#rest-client-access</a><br>
</div><div><br></div><div>Gary</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 8:44 AM, Rajasekhar P <span dir="ltr"><<a href="mailto:sekhar434145@gmail.com" target="_blank">sekhar434145@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Tim for the reply. Am using Spring-AMQP instead plain RabbitMQ Java API for writing producer and consumer programs and executed policies through command prompt in a clustered nodes. Is this only way to set policies using command prompt or is there any other approach? <div>
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 6:05 PM, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 17 Oct 2013, at 13:10, Rajasekhar P <<a href="mailto:sekhar434145@gmail.com" target="_blank">sekhar434145@gmail.com</a>> wrote:<br>
<br>
> While going through the documentation, came to know that we have to set the policies in RabbitMQ server level. Can we set the policies at client level? if possible, how?Thanks .<br>
<br>
</div>No, policies are only set at the broker. You can use the management API to set policies programmatically, an of you wish to do this over AMQP, you can utilise Simon's <a href="https://github.com/simonmacmullen/rabbitmq-management-exchange" target="_blank">https://github.com/simonmacmullen/rabbitmq-management-exchange</a> project.<br>
<br>
Tim<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rabbitmq-discuss mailing list</span><br><span><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a></span><br><span><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a></span><br></div></blockquote></body></html>