<?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="camel-jpa-retrieve-binding" targetNamespace="urn:switchyard-quickstart:camel-jpa-binding:0.1.0">
        <service name="GreetingService" promote="GreetingService/GreetingService" requires="propagatesTransaction">
            <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.GreetingService"/>
            <jpa:binding.jpa xmlns:jpa="urn:switchyard-component-camel-jpa:config:1.0">
                <jpa:entityClassName>org.switchyard.quickstarts.camel.jpa.binding.domain.Greet</jpa:entityClassName>
                <jpa:persistenceUnit>JpaEvents</jpa:persistenceUnit>
                <jpa:transactionManager>#jtaTransactionManager</jpa:transactionManager>
                <jpa:consume>
                    <jpa:initialDelay>1000</jpa:initialDelay>
                    <jpa:delay>500</jpa:delay>
                    <jpa:consumeDelete>true</jpa:consumeDelete>
                    <jpa:consumeLockEntity>false</jpa:consumeLockEntity>
                    <jpa:consumer.transacted>true</jpa:consumer.transacted>
                </jpa:consume>
            </jpa:binding.jpa>
        </service>
        <service name="PeriodicService" promote="PeriodicService/PeriodicService">
            <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.StoreService"/>
            <quartz:binding.quartz xmlns:quartz="urn:switchyard-component-camel-quartz:config:1.0">
                <quartz:name>EveryFiveSecondsJob</quartz:name>
                <quartz:cron>*/5 * * * * ?</quartz:cron>
            </quartz:binding.quartz>
        </service>
        <reference multiplicity="0..1" name="StoreReference" promote="PeriodicService/StoreReference">
            <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.StoreService"/>
            <jpa:binding.jpa xmlns:jpa="urn:switchyard-component-camel-jpa:config:1.0">
                <jpa:entityClassName>org.switchyard.quickstarts.camel.jpa.binding.domain.Greet</jpa:entityClassName>
                <jpa:persistenceUnit>JpaEvents</jpa:persistenceUnit>
                <jpa:transactionManager>#jtaTransactionManager</jpa:transactionManager>
            </jpa:binding.jpa>
        </reference>
        <component name="GreetingService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.jpa.binding.GreetingServiceBean"/>
            <service name="GreetingService">
                <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.GreetingService"/>
            </service>
        </component>
        <component name="PeriodicService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.jpa.binding.PeriodicServiceImpl"/>
            <service name="PeriodicService">
                <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.PeriodicService"/>
            </service>
            <reference name="StoreReference">
                <interface.java interface="org.switchyard.quickstarts.camel.jpa.binding.StoreService"/>
            </reference>
        </component>
    </composite>
</switchyard>
