activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r430407 - /incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml
Date Thu, 10 Aug 2006 14:57:12 GMT
Author: jstrachan
Date: Thu Aug 10 07:57:11 2006
New Revision: 430407

URL: http://svn.apache.org/viewvc?rev=430407&view=rev
Log:
added a better example of using the xbean-spring flavour of XML configuration

Modified:
    incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml

Modified: incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml?rev=430407&r1=430406&r2=430407&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml (original)
+++ incubator/activemq/trunk/activemq-core/src/test/resources/spring-embedded-xbean.xml Thu
Aug 10 07:57:11 2006
@@ -21,7 +21,7 @@
   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.xsd

   http://activemq.org/config/1.0 http://people.apache.org/repository/org.apache.activemq/xsds/activemq-core-4.1-incubator-SNAPSHOT.xsd">
-
+  
   <!--  lets create an embedded ActiveMQ Broker -->
   <amq:broker useJmx="false" persistent="false">
     <amq:transportConnectors>
@@ -29,10 +29,12 @@
     </amq:transportConnectors>
   </amq:broker>
 
+   <!--  ActiveMQ destinations to use  -->
+  <amq:queue id="destination"  physicalName="org.apache.activemq.spring.Test.spring.embedded"/>
+
   <!-- JMS ConnectionFactory to use, configuring the embedded broker using XML -->
-  <bean id="jmsFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
-    <property name="brokerURL" value="vm://localhost" />
-  </bean>
+  <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>
+  
 
   <!-- Spring JMS Template -->
   <bean id="myJmsTemplate" class="org.springframework.jms.core.JmsTemplate">
@@ -61,24 +63,12 @@
     </property>
   </bean>
 
-
   <!-- a sample POJO consumer -->
   <bean id="consumer" class="org.apache.activemq.spring.SpringConsumer">
-    <property name="template">
-      <ref bean="myJmsTemplate"></ref>
-    </property>
-
-    <property name="destination">
-      <ref bean="destination" />
-    </property>
+    <property name="template" ref="myJmsTemplate"/>
+    <property name="destination" ref="destination"/>
   </bean>
 
-  <!--  TODO lets use the better element... -->
-  <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue" autowire="constructor">
-    <constructor-arg>
-      <value>org.apache.activemq.spring.Test.spring.embedded</value>
-    </constructor-arg>
-  </bean>
 </beans>
 
 <!-- END SNIPPET: spring -->



Mime
View raw message