Reference to a (SalesforceComponent) bean in another Blueprint DSL file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Reference to a (SalesforceComponent) bean in another Blueprint DSL file

Gerald Kallas -
Dear community,

is it possible to split the following Blueprint DSL in 2 ones

<blueprint xmlns=""

      <bean id="salesforce" class="org.apache.camel.component.salesforce.SalesforceComponent">
            <property name="loginConfig">
                  <bean class="org.apache.camel.component.salesforce.SalesforceLoginConfig">
                        <property name="loginUrl" value=""/>
                        <property name="clientId" value="xxx"/>
                        <property name="clientSecret" value="xxx"/>
                        <property name="userName" value="xxx"/>
                        <property name="password" value="xxx"/>
                        <property name="lazyLogin" value="true"/>

      <camelContext id="salesforceTest" xmlns=""  streamCache="true">
                  <from uri="timer:test?repeatCount=1"/>
                  <to uri="direct:salesforceTest"/>
                  <from uri="direct:salesforceTest"/>
                  <to uri="salesforce:limits"/>
                  <log message="${body}"/>


where the 1st contains the bean definition for "salesforce" und the 2nd contains the Camel Context with the Camel Routes?

Many thanks in advance
- Gerald