<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:jms="http://www.springframework.org/schema/jms"
  xmlns:p="http://www.springframework.org/schema/p"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd">
  <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"
    p:brokerURL="tcp://localhost:61616" />
  
  <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="TEST.FOO" />
  </bean>
    
  <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"
    p:connectionFactory-ref="connectionFactory"
    p:defaultDestination-ref="destination" 
    p:receiveTimeout="1000" />
  
  <bean id="messageReceiver" class="org.bsnyder.spring.jms.receiver.SimpleMessageReceiver"
    p:jmsTemplate-ref="jmsTemplate" />
  
</beans>