<?xml version="1.0" encoding="UTF-8"?> 
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:spring="http://www.springframework.org/schema/beans"
  xmlns:jms="http://www.mulesource.org/schema/mule/jms/2.0"
  xsi:schemaLocation="
  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
  http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
  http://www.mulesource.org/schema/mule/jms/2.0 http://www.mulesource.org/schema/mule/jms/2.0/mule-jms.xsd">
  
  <!-- A description for this configuration -->
  <description>
    This is the configuration file for the MBARI Enterprise Service Bus
  </description>

  <!-- Declare ActiveMQ Connector for an instance running on localhost -->
  <jms:activemq-connector name="jmsConnector" brokerURL="tcp://localhost:61616"/>

  <!-- Declare global JMS endpoints -->
  <jms:endpoint name="exampleAQueueEndpoint" queue="9b1ed7d4-d95c-11db-a6d9-fff1427a99d4-dq" connector-ref="jmsConnector"/>
  <jms:endpoint name="exampleBQueueEndpoint" queue="example.B" connector-ref="jmsConnector"/>

  <!-- Define the model -->
  <model name="default">
    <!-- Create a service to simply pass messages through -->
    <service name="routerAtoB">
      <inbound>
        <inbound-endpoint ref="exampleAQueueEndpoint"/>
      </inbound>
      <outbound>
        <outbound-pass-through-router>
          <outbound-endpoint ref="exampleBQueueEndpoint"/>
        </outbound-pass-through-router>
      </outbound>
    </service>
  </model>
</mule>  

