[rabbitmq-discuss] basicQos
cw storm
cwstorm at gmail.com
Wed Feb 5 00:32:22 GMT 2014
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.
On Tue, Feb 4, 2014 at 5:46 PM, Alvaro Videla <videlalvaro at gmail.com> wrote:
> I've just tried the code from the tutorials here:
> http://www.rabbitmq.com/tutorials/tutorial-two-java.html
>
> Specifically:
>
> int prefetchCount = 10;
> channel.basicQos(prefetchCount);
>
> And it worked.
>
> What errors are you getting?
>
> Regards,
>
> Alvaro
>
> On Tue, Feb 4, 2014 at 11:35 PM, cistron <cwstorm at gmail.com> wrote:
> > I just want to pass a veritable to the method instead of hard coding the
> value.
> >
> > Sent from my iPhone
> >
> >> On Feb 4, 2014, at 5:09 PM, Alvaro Videla <videlalvaro at gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> What are you tried to achieve?
> >>
> >> Regards,
> >>
> >> Alvaro
> >>
> >>> On Tue, Feb 4, 2014 at 10:30 PM, cw storm <cwstorm at gmail.com> wrote:
> >>> Is it possible to pass a variable to basicQos()? For example, I
> assign "int
> >>> x = 10". I called on "channel.basicQos(x)". I tried this but don't
> see the
> >>> consumer service being subscribe to the channel. But if I just
> hardcode the
> >>> actual value, then it works.
> >>>
> >>> _______________________________________________
> >>> 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
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140204/435af7f9/attachment.html>
More information about the rabbitmq-discuss
mailing list