There is my test context:

<camel:camelContext id="myContext">
        <camel:endpoint id="ldapx" 
uri="mycomponent:ldapServer?operation=safeAdd"/>

        <camel:route id="test1">
                <camel:from uri="timer://test1?fixedRate=true&amp;period=1s"/>
                <camel:setBody>
                        <camel:constant>THREAD-1</camel:constant>
                </camel:setBody>
                <camel:to ref="ldapx"/>
        </camel:route>

        <camel:route id="test2">
                <camel:from uri="timer://test2?fixedRate=true&amp;period=1s"/>
                <camel:setBody>
                        <camel:constant>THREAD-2</camel:constant>
                </camel:setBody>
                <camel:to ref="ldapx"/>
        </camel:route>
</camel:camelContext>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Component-singleton-for-all-routes-tp5755446p5755477.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to