<div dir="ltr">Hmm...guess I have to figure this one out. I'm not getting any error during compilation time. I executed the service and can see that it being the consumer for the queue. This is with my hardcodeing the value in channel.basicQos(10). Now, if I assigned a value to a variable, I don't see the consumer service being assigned to the queue. Since you've confirmed that I can used a variable for the method, I will have to dig further into my service. Thanks.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 5:46 PM, Alvaro Videla <span dir="ltr"><<a href="mailto:videlalvaro@gmail.com" target="_blank">videlalvaro@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've just tried the code from the tutorials here:<br>
<a href="http://www.rabbitmq.com/tutorials/tutorial-two-java.html" target="_blank">http://www.rabbitmq.com/tutorials/tutorial-two-java.html</a><br>
<br>
Specifically:<br>
<br>
int prefetchCount = 10;<br>
channel.basicQos(prefetchCount);<br>
<br>
And it worked.<br>
<br>
What errors are you getting?<br>
<br>
Regards,<br>
<br>
Alvaro<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Feb 4, 2014 at 11:35 PM, cistron <<a href="mailto:cwstorm@gmail.com">cwstorm@gmail.com</a>> wrote:<br>
> I just want to pass a veritable to the method instead of hard coding the value.<br>
><br>
> Sent from my iPhone<br>
><br>
>> On Feb 4, 2014, at 5:09 PM, Alvaro Videla <<a href="mailto:videlalvaro@gmail.com">videlalvaro@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> What are you tried to achieve?<br>
>><br>
>> Regards,<br>
>><br>
>> Alvaro<br>
>><br>
>>> On Tue, Feb 4, 2014 at 10:30 PM, cw storm <<a href="mailto:cwstorm@gmail.com">cwstorm@gmail.com</a>> wrote:<br>
>>> Is it possible to pass a variable to basicQos()? For example, I assign "int<br>
>>> x = 10". I called on "channel.basicQos(x)". I tried this but don't see the<br>
>>> consumer service being subscribe to the channel. But if I just hardcode the<br>
>>> actual value, then it works.<br>
>>><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>
>> 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>
> 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>
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>
</div></div></blockquote></div><br></div>