- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ctx="http://www.springframework.org/schema/context"
- xmlns:amq="http://activemq.apache.org/schema/core"
- xmlns:camel-osgi="http://camel.apache.org/schema/osgi" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
- http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
- http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
- http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
- http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">
- <!-- Mock properties -->
- <ctx:property-placeholder location="classpath:mock.properties"/>
- <!-- Mock persistence -->
- <!-- Subscription DAO is here purely to aid in testing -->
- <bean id="subscriptionDAO" class="edu.ucar.ral.wcsri.pubsub.getcvg.SubscriptionMockDAO"/>
- <bean id="messageDAO" class="edu.ucar.ral.wcsri.pubsub.getcvg.MessageMockDAO"/>
- <bean id="streamingFactory" class="edu.ucar.ral.wcsri.pubsub.getcvg.MockStreamingFactory">
- <constructor-arg ref="subscriptionDAO"/>
- </bean>
- <!-- ActiveMQ Test Broker -->
- <amq:broker brokerName="Test" useJmx="false" persistent="false" xmlns="http://activemq.apache.org/schema/core"/>
- <camel-osgi:camelContext xmlns="http://camel.apache.org/schema/spring"/>
- <!-- Transaction Configuration -->
- <tx:annotation-driven transaction-manager="transactionManager"/>
- <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>
- <!-- GetCoverageProcessor -->
- <bean id="getCoverageProcessor" class="edu.ucar.ral.wcsri.pubsub.getcvg.GetCoverageProcessor">
- <property name="messageDAO" ref="messageDAO"/>
- <property name="streamingFactory" ref="streamingFactory" />
- <property name="jmsTemplate" ref="jmsTemplate"/>
- </bean>
- <!-- Spring JMS Template -->
- <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
- <property name="connectionFactory">
- <ref local="jmsConnectionFactory"/>
- </property>
- </bean>
- <!-- AMQ config -->
- <bean id="jmsConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory" destroy-method="stop">
- <property name="connectionFactory">
- <bean class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="${amq.connection.url}"/>
- </bean>
- </property>
- </bean>
- <bean id="transactionManager" class="org.springframework.jms.connection.JmsTransactionManager">
- <property name="connectionFactory" ref="jmsConnectionFactory"/>
- </bean>
- <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
- <property name="connectionFactory" ref="jmsConnectionFactory"/>
- <property name="transacted" value="true"/>
- <property name="transactionManager" ref="transactionManager"/>
- </bean>
- </beans>