Hi

Its just a setter on CamelContext but it may be harder to do with
Spring XML lingo when using <camelContext/>
There is a related JIRA ticket to have easier configuration of the
pool size of <producerTemplate> and <consumerTemplate>.
So please add a comment on that ticket about your use case.



On Tue, Mar 30, 2010 at 7:04 PM, christian ohr <christian....@icw.de> wrote:
>
> Hi,
>
> is there any way to configure the ProducerServicePool in a Spring Camel
> Context? The problem is that I want to reduce the number of cached
> producers.
>
> I tried something like this:
>
> ...
>        <camel:camelContext id="camelContext" trace="false">
>                <camel:properties>
>                        <camel:property key="serviceProducerPool" 
> value="#producerPool"/>
>                </camel:properties>
>                <camel:jmxAgent id="agent"
>                        disabled="false"
>                        createConnector="true"
>                        registryPort="1099"
>                        connectorPort="1100"/>
>
>                <camel:routeBuilder ref="myRouteBuilder" />
>                <camel:routeBuilder ref="myOtherRouteBuilder" />
>
>        </camel:camelContext>
>
>        <bean id="producerPool"
> class="org.apache.camel.impl.DefaultProducerServicePool">
>                <constructor-arg value="3"/>
>        </bean>
> ...
>
> but apparently it seemed to have no effect.
> Any hints or workaournds?
>
> thanks
> Christian
>
> --
> View this message in context: 
> http://old.nabble.com/Setting-ProducerServicePool-in-Spring-Camel-Context-tp28085498p28085498.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
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

Reply via email to