Skip to content

Instantly share code, notes, and snippets.

@dvirgiln
Created December 3, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvirgiln/864f7b30c70c30c1ad93 to your computer and use it in GitHub Desktop.
Save dvirgiln/864f7b30c70c30c1ad93 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.1" xmlns:bean="urn:switchyard-component-bean:config:1.1" xmlns:camel="urn:switchyard-component-camel:config:1.1" xmlns:http="urn:switchyard-component-http:config:1.1" xmlns:jca="urn:switchyard-component-jca:config:1.1" xmlns:jms="urn:switchyard-component-camel-jms:config:1.1" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="jms-test" targetNamespace="urn:ledegen:messaging-service:1.0">
<sca:composite name="jms-test" targetNamespace="urn:ledegen:messaging-service:1.0">
<sca:component name="MessageServiceBean">
<bean:implementation.bean class="org.jboss.soa.qa.messaging.MessageServiceBean"/>
<sca:service name="MessageService">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
</sca:service>
<sca:reference name="OutboundQueue">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
</sca:reference>
<sca:reference name="OutboundTopic">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
</sca:reference>
<sca:reference name="AnotherService">
<sca:interface.java interface="main.java.org.jboss.soa.qa.jms.AnotherService"/>
</sca:reference>
</sca:component>
<sca:service name="MessageService" promote="MessageServiceBean/MessageService">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
<jms:binding.jms name="queue">
<operationSelector operationName="queue"/>
<jms:contextMapper includes="qa.*"/>
<jms:queue>JmsInboundQueue</jms:queue>
<jms:connectionFactory>#${jmsImpl}/ConnectionFactory</jms:connectionFactory>
</jms:binding.jms>
<jms:binding.jms name="topic">
<operationSelector operationName="topic"/>
<jms:contextMapper includes="qa.*"/>
<jms:topic>JmsInboundTopic</jms:topic>
<jms:connectionFactory>#${jmsImpl}/ConnectionFactory</jms:connectionFactory>
</jms:binding.jms>
</sca:service>
<sca:reference name="OutboundQueue" multiplicity="0..1" promote="MessageServiceBean/OutboundQueue">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
<jms:binding.jms name="queue">
<jms:contextMapper includes="qa.*"/>
<jms:additionalUriParameters>
<jms:parameter name="jmsMessageType" value="Object"/>
</jms:additionalUriParameters>
<jms:queue>JmsOutboundQueue</jms:queue>
<jms:connectionFactory>#${jmsImpl}/ConnectionFactory</jms:connectionFactory>
</jms:binding.jms>
</sca:reference>
<sca:reference name="OutboundTopic" multiplicity="0..1" promote="MessageServiceBean/OutboundTopic">
<sca:interface.java interface="org.jboss.soa.qa.jms.MessageService"/>
<jms:binding.jms name="topic">
<jms:contextMapper includes="qa.*"/>
<jms:additionalUriParameters>
<jms:parameter name="jmsMessageType" value="Object"/>
</jms:additionalUriParameters>
<jms:topic>JmsOutboundTopic</jms:topic>
<jms:connectionFactory>#${jmsImpl}/ConnectionFactory</jms:connectionFactory>
</jms:binding.jms>
</sca:reference>
<sca:reference name="AnotherService" multiplicity="0..1">
<sca:interface.java interface="main.java.org.jboss.soa.qa.jms.AnotherService"/>
</sca:reference>
</sca:composite>
<domain>
<properties>
<property name="org.switchyard.handlers.messageTrace.enabled" value="true"/>
</properties>
</domain>
</switchyard>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment