<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
    </bean>

    <bean id="requestQueue" class="org.apache.activemq.command.ActiveMQQueue">
        <property name="physicalName" value="SenderRequestQueue"/>
    </bean>

    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
        <property name="connectionFactory" ref="connectionFactory"/>
        <property name="defaultDestination" ref="requestQueue"/>
    </bean>

    <bean id="messageSender" class="org.springframework.ws.transport.jms.JmsMessageSender">
        <property name="connectionFactory" ref="connectionFactory"/>
        <property name="receiveTimeout" value="500"/>
    </bean>

</beans>