<?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:context="http://www.springframework.org/schema/context"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

  <context:property-placeholder location="classpath:xxxx-config.properties"/>

  <bean id="broadcastFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
          <value>${jms.server.url}</value>
        </property>
      </bean>
    </property>
    <property name="maxConnections" value="2"/>
  </bean>

  <bean id="broadcastQueue" class="org.apache.activemq.command.xxx">
    <constructor-arg value="${jms.data.queue}"/>
  </bean>

  <bean id="broadcastTemplate" class="org.springframework.jms.core.JmsTemplate">
  	<property name="connectionFactory" ref="xxx"/>
    <property name="defaultDestination">
        <bean class="org.apache.activemq.command.ActiveMQQueue">
            <constructor-arg value="${jms.data.queue}"/>
        </bean>
    </property>
  </bean>


  <bean id="jmsBroadcast" class="xxx.xxxxx.xxxx.xx.xxx.xxx.xxxxx">
      <property name="template" ref="xxxxxx"/>
  </bean>
    
</beans>
