Thank you, Claus!
It worked!
If somebody is interested in this code:
[code]
try{
for (Route route: camelContext.getRoutes()){
JmsEndpoint jmsEndpoint = (JmsEndpoint) route.getEndpoint();
jmsEndpoint.setMaxConcurrentConsumers(1);
route.getConsumer().stop();
route.getConsumer().start();
}
} catch (Exception e) {
e.printStackTrace();
}
[/code]
2010/7/8 Claus Ibsen <[email protected]>
> Hi
>
> You need to restart the consumer for those values to take affect.
>
>
> 2010/7/8 Евгений Лиукконен <[email protected]>:
> > Hello.
> >
> > ...
> > ...
> > ...
> >
> > Is it possible to reconfigure routes at runtime to change the value of
> > maxConcurrentConsumers?
> >
> >
> > Thank you for your attention.
> >
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>