<?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
<!--
    JBoss, Home of Professional Open Source
    Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
    contributors by the @authors tag. See the copyright.txt in the
    distribution for a full listing of individual contributors.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="jca-inflow-activemq" targetNamespace="urn:switchyard-quickstart:jca-inflow-activemq:0.1.0">
        <service name="GreetingService" promote="GreetingService/GreetingService">
            <interface.java interface="org.switchyard.quickstarts.jca.inflow.GreetingGateway"/>
            <binding.jca xmlns="urn:switchyard-component-jca:config:1.0">
                <swyd:operationSelector.xpath xmlns:swyd="urn:switchyard-config:switchyard:1.0" expression="//person/language"/>
                <inboundConnection>
                    <resourceAdapter name="activemq-ra.rar"/>
                    <activationSpec>
                        <property name="destinationType" value="javax.jms.Queue"/>
                        <property name="destination" value="JCAInflowGreetingServiceQueue"/>
                    </activationSpec>
                </inboundConnection>
                <inboundInteraction>
                    <listener>javax.jms.MessageListener</listener>
                    <endpoint type="org.switchyard.component.jca.endpoint.JMSEndpoint"/>
                    <transacted>true</transacted>
                </inboundInteraction>
            </binding.jca>
        </service>
        <component name="GreetingService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.jca.inflow.GreetingServiceBean"/>
            <service name="GreetingService">
                <interface.java interface="org.switchyard.quickstarts.jca.inflow.GreetingService"/>
            </service>
        </component>
    </composite>
    <transforms xmlns:xform="urn:switchyard-config:transform:1.0">
        <xform:transform.jaxb contextPath="org.switchyard.quickstarts.jca.inflow" from="{urn:switchyard-quickstart:jca-inflow-activemq:0.1.0}person" to="java:org.switchyard.quickstarts.jca.inflow.Person"/>
    </transforms>
</switchyard>
