<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" xmlns:bean="urn:switchyard-component-bean:config:1.0" xmlns:rules="urn:switchyard-component-rules:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="switchyard-quickstart-remote-invoker" targetNamespace="urn:com.example.switchyard:switchyard-quickstart-remote-invoker:1.0">
  <sca:composite name="switchyard-quickstart-remote-invoker" targetNamespace="urn:com.example.switchyard:switchyard-quickstart-remote-invoker:1.0">
    <sca:service name="Dealer" promote="DealerBean/Dealer">
      <sca:interface.java interface="org.switchyard.quickstarts.remoteinvoker.Dealer"/>
      <sca:binding.sca/>
    </sca:service>
    <sca:component name="DealerBean">
      <bean:implementation.bean class="org.switchyard.quickstarts.remoteinvoker.DealerBean"/>
      <sca:service name="Dealer">
        <sca:interface.java interface="org.switchyard.quickstarts.remoteinvoker.Dealer"/>
      </sca:service>
      <sca:reference name="CreditCheck">
        <sca:interface.java interface="org.switchyard.quickstarts.remoteinvoker.CreditCheck"/>
      </sca:reference>
    </sca:component>
    <sca:component name="RulesComponent">
      <rules:implementation.rules>
        <rules:manifest>
          <rules:resources>
            <rules:resource location="RulesComponent.drl" type="DRL"/>
          </rules:resources>
        </rules:manifest>
        <rules:operations>
          <rules:operation name="checkCredit" type="EXECUTE">
            <rules:inputs>
              <rules:input from="message.content.application"/>
            </rules:inputs>
          </rules:operation>
        </rules:operations>
      </rules:implementation.rules>
      <sca:service name="CreditCheck">
        <sca:interface.java interface="org.switchyard.quickstarts.remoteinvoker.CreditCheck"/>
      </sca:service>
    </sca:component>
  </sca:composite>
  <!-- Uncomment this section to trace message exchange activity
  <domain>
      <properties>
        <property name="org.switchyard.handlers.messageTrace.enabled" value="true"/>
      </properties>
  </domain>
  -->
</switchyard>
