You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Håkon Sagehaug <hs...@gmail.com> on 2008/06/20 10:22:05 UTC

Configurating jms queue

Hi

Is there a way of configurationg the jms queue in servicemix, i.e "this web
service can only x request in some persiod in time" or some thing similar?

cheers, Håkon

-- 
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

Re: Configurating jms queue

Posted by Gert Vanthienen <ge...@skynet.be>.
Håkon,

Using a <jms:consumer/> you can specify to use a synchronous request and specify the number of requests that can be handled simultaneously, which already gives you some basic control over the amount of work done by the ESB.  Camel has a few constructs (http://activemq.apache.org/camel/delayer.html and especially http://activemq.apache.org/camel/throttler.html) that allow you to slow down message once they're in the ESB (e.g. like for your example with the web service that can only handle x exchanges / time period).

Regards,

Gert


Håkon Sagehaug wrote:
> Hi
>
> Is there a way of configurationg the jms queue in servicemix, i.e "this web
> service can only x request in some persiod in time" or some thing similar?
>
> cheers, Håkon
>
>