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 - mailbox.org
Dear community,

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

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
                 xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0  https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

      <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="https://test.salesforce.com/"/>
                        <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"/>
                  </bean>
            </property>
      </bean>

      <camelContext id="salesforceTest" xmlns="http://camel.apache.org/schema/blueprint"  streamCache="true">
            <route>
                  <from uri="timer:test?repeatCount=1"/>
                  <to uri="direct:salesforceTest"/>
            </route>
            <route>
                  <from uri="direct:salesforceTest"/>
                  <to uri="salesforce:limits"/>
                  <log message="${body}"/>
            </route>
      </camelContext>

</blueprint>

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