<?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">

    <jms:activemq-connector name="jmsConnector" />

    <!-- The Mule implementation of the Spring ApplicationEventMulticaster.  On startup the
        application context will look in the container for a bean called applicationEventMulticaster and
        register it as the spring context event multicaster  -->
    <spring:bean id="applicationEventMulticaster"
        class="org.mule.module.spring.events.MuleEventMulticaster"
        scope="singleton" />

    <!-- Our ourderManager bean -->
    <spring:bean id="orderManagerBean"
        class="org.mule.test.integration.spring.events.OrderManagerBean">
        <spring:property name="subscriptions">
            <spring:list>
                <spring:value>jms://orders.queue</spring:value>
                <!--            <spring:value>pop3://user:password@mail.myrestaurant.com?transformers=EmailMessageToString,StringToOrder</spring:value>-->
                <spring:value>axis:http://localhost:44444/mule/orderManager</spring:value>
            </spring:list>
        </spring:property>
    </spring:bean>


    <!--    <spring:bean id="EmailMessageToString" class="org.mule.transport.email.transformers.EmailMessageToString"/>-->

    <spring:bean id="StringToOrder"
        class="org.mule.test.integration.spring.events.StringToOrder">
        <spring:property name="returnClass">
            <spring:value>org.mule.test.integration.spring.events.Order</spring:value>
        </spring:property>
    </spring:bean>
</mule>