From: <fc...@us...> - 2008-03-20 16:19:21
|
Revision: 750 http://openutils.svn.sourceforge.net/openutils/?rev=750&view=rev Author: fcarone Date: 2008-03-20 09:18:55 -0700 (Thu, 20 Mar 2008) Log Message: ----------- spring config for tests Added Paths: ----------- trunk/openutils-spring-remote-callback/src/test/resources/ trunk/openutils-spring-remote-callback/src/test/resources/spring-client.xml trunk/openutils-spring-remote-callback/src/test/resources/spring-services.xml trunk/openutils-spring-remote-callback/src/test/resources/spring-tests.xml Added: trunk/openutils-spring-remote-callback/src/test/resources/spring-client.xml =================================================================== --- trunk/openutils-spring-remote-callback/src/test/resources/spring-client.xml (rev 0) +++ trunk/openutils-spring-remote-callback/src/test/resources/spring-client.xml 2008-03-20 16:18:55 UTC (rev 750) @@ -0,0 +1,16 @@ +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:util="http://www.springframework.org/schema/util" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd"> + <bean id="callbackManager" class="org.logicblaze.lingo.jms.JmsProxyFactoryBean"> + <property name="serviceInterface" value="it.openutils.spring.remote.callback.manager.CallbackManager" /> + <property name="connectionFactory" ref="jmsFactory" /> + <property name="destination" ref="callbackDestination" /> + </bean> + <bean id="jmsFactory" class="org.activemq.ActiveMQConnectionFactory"> + <property name="brokerURL" value="tcp://localhost:61616" /> + </bean> + <bean id="callbackDestination" class="org.activemq.message.ActiveMQQueue"> + <constructor-arg index="0" value="callbackDestinationQ" /> + </bean> +</beans> Added: trunk/openutils-spring-remote-callback/src/test/resources/spring-services.xml =================================================================== --- trunk/openutils-spring-remote-callback/src/test/resources/spring-services.xml (rev 0) +++ trunk/openutils-spring-remote-callback/src/test/resources/spring-services.xml 2008-03-20 16:18:55 UTC (rev 750) @@ -0,0 +1,29 @@ +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:util="http://www.springframework.org/schema/util" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd"> + <bean id="dummyManager" class="it.openutils.spring.remote.callback.test.server.DummyManagerImpl" /> + <bean id="callbackManager" class="it.openutils.spring.remote.callback.manager.impl.CallbackManagerImpl" /> + <bean id="callbackManagerListener" class="org.logicblaze.lingo.jms.JmsServiceExporterMessageListener"> + <property name="destination" ref="callbackDestination" /> + <property name="service" ref="callbackManager" /> + <property name="serviceInterface" value="it.openutils.spring.remote.callback.manager.CallbackManager" /> + <property name="connectionFactory" ref="jmsFactory" /> + </bean> + <bean id="callbackManagerJMS" class="org.springframework.jms.listener.DefaultMessageListenerContainer"> + <property name="concurrentConsumers" value="20" /> + <property name="destination" ref="callbackDestination" /> + <property name="messageListener" ref="callbackManagerListener" /> + <property name="connectionFactory" ref="jmsFactory" /> + </bean> + <!-- JMS ConnectionFactory to use --> + <bean id="jmsFactory" class="org.activemq.ActiveMQConnectionFactory"> + <property name="brokerURL" value="tcp://localhost:61616" /> + <property name="useEmbeddedBroker"> + <value>true</value> + </property> + </bean> + <bean id="callbackDestination" class="org.activemq.message.ActiveMQQueue"> + <constructor-arg index="0" value="callbackDestinationQ" /> + </bean> +</beans> \ No newline at end of file Added: trunk/openutils-spring-remote-callback/src/test/resources/spring-tests.xml =================================================================== --- trunk/openutils-spring-remote-callback/src/test/resources/spring-tests.xml (rev 0) +++ trunk/openutils-spring-remote-callback/src/test/resources/spring-tests.xml 2008-03-20 16:18:55 UTC (rev 750) @@ -0,0 +1,11 @@ +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:util="http://www.springframework.org/schema/util" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd"> + + <!-- server side --> + <import resource="classpath:spring-services.xml" /> + + <!-- client side --> + <import resource="classpath:spring-client.xml" /> +</beans> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |