[jboss-svn-commits] JBL Code SVN: r34656 - in labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src: test/resources and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Aug 12 02:30:03 EDT 2010


Author: diegoll
Date: 2010-08-12 02:30:02 -0400 (Thu, 12 Aug 2010)
New Revision: 34656

Modified:
   labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/main/resources/executorContext.xml
   labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/test/resources/executorContextTest.xml
Log:
[JBRULES-2616] moved hornetq server initialization to test context

Modified: labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/main/resources/executorContext.xml
===================================================================
--- labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/main/resources/executorContext.xml	2010-08-12 03:28:41 UTC (rev 34655)
+++ labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/main/resources/executorContext.xml	2010-08-12 06:30:02 UTC (rev 34656)
@@ -50,47 +50,6 @@
     <property name="location" value="classpath:executor.properties" />
   </bean>
 
-
-  <!-- start HornetQ server -->
-  <bean id="hornetQServer" class="org.hornetq.core.server.HornetQServers" factory-method="newHornetQServer"
-    init-method="start" destroy-method="stop">
-    <constructor-arg>
-      <bean class="org.hornetq.core.config.impl.ConfigurationImpl">
-        <property name="persistenceEnabled" value="false" />
-        <property name="securityEnabled" value="false" />
-        <property name="clustered" value="false" />
-        <property name="queueConfigurations">
-          <list>
-            <bean class="org.hornetq.core.server.cluster.QueueConfiguration">
-              <constructor-arg name="address" value="executeTimerMessages" />
-              <constructor-arg name="name" value="executeTimerMessages" />
-              <constructor-arg name="filterString">
-                <null />
-              </constructor-arg>
-              <constructor-arg name="durable" value="true" />
-            </bean>
-          </list>
-        </property>
-        <property name="acceptorConfigurations">
-          <set>
-            <bean class="org.hornetq.api.core.TransportConfiguration">
-              <constructor-arg>
-                <value>org.hornetq.integration.transports.netty.NettyAcceptorFactory</value>
-              </constructor-arg>
-              <constructor-arg>
-                <map>
-                  <entry>
-                    <key>
-                      <util:constant static-field="org.hornetq.integration.transports.netty.TransportConstants.PORT_PROP_NAME" />
-                    </key>
-                    <value>5446</value>
-                  </entry>
-                </map>
-              </constructor-arg>
-            </bean>
-          </set>
-        </property>
-      </bean>
-    </constructor-arg>
-  </bean>
+  <!-- dummy hornetQServer for override in tests -->
+  <bean id="hornetQServer" class="java.lang.Object"/>
 </beans>
\ No newline at end of file

Modified: labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/test/resources/executorContextTest.xml
===================================================================
--- labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/test/resources/executorContextTest.xml	2010-08-12 03:28:41 UTC (rev 34655)
+++ labs/jbossrules/branches/5_1_20100802_esteban_diega/drools-process/drools-persistent-timer/drools-timer-executor/src/test/resources/executorContextTest.xml	2010-08-12 06:30:02 UTC (rev 34656)
@@ -1,8 +1,55 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans" 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-3.0.xsd">
+  xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
+  xsi:schemaLocation="http://www.springframework.org/schema/beans    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd  
+                      http://www.springframework.org/schema/context  http://www.springframework.org/schema/context/spring-context-3.0.xsd  
+                      http://www.springframework.org/schema/util     http://www.springframework.org/schema/util/spring-util-3.0.xsd">
 
+
   <bean id="timerMessageProducer" factory-bean="clientSession" factory-method="createProducer" destroy-method="close">
     <constructor-arg value="executeTimerMessages" />
   </bean>
+
+  <!-- start HornetQ server -->
+  <bean id="hornetQServer" class="org.hornetq.core.server.HornetQServers" factory-method="newHornetQServer"
+    init-method="start" destroy-method="stop">
+    <constructor-arg>
+      <bean class="org.hornetq.core.config.impl.ConfigurationImpl">
+        <property name="persistenceEnabled" value="false" />
+        <property name="securityEnabled" value="false" />
+        <property name="clustered" value="false" />
+        <property name="queueConfigurations">
+          <list>
+            <bean class="org.hornetq.core.server.cluster.QueueConfiguration">
+              <constructor-arg name="address" value="executeTimerMessages" />
+              <constructor-arg name="name" value="executeTimerMessages" />
+              <constructor-arg name="filterString">
+                <null />
+              </constructor-arg>
+              <constructor-arg name="durable" value="true" />
+            </bean>
+          </list>
+        </property>
+        <property name="acceptorConfigurations">
+          <set>
+            <bean class="org.hornetq.api.core.TransportConfiguration">
+              <constructor-arg>
+                <value>org.hornetq.integration.transports.netty.NettyAcceptorFactory</value>
+              </constructor-arg>
+              <constructor-arg>
+                <map>
+                  <entry>
+                    <key>
+                      <util:constant static-field="org.hornetq.integration.transports.netty.TransportConstants.PORT_PROP_NAME" />
+                    </key>
+                    <value>5446</value>
+                  </entry>
+                </map>
+              </constructor-arg>
+            </bean>
+          </set>
+        </property>
+      </bean>
+    </constructor-arg>
+  </bean>
 </beans>
\ No newline at end of file



More information about the jboss-svn-commits mailing list