[jboss-cvs] jboss-seam/examples/spring/resources/WEB-INF ...
Michael Youngstrom
youngm at gmail.com
Thu Jun 14 19:08:04 EDT 2007
User: myoungstrom
Date: 07/06/14 19:08:04
Modified: examples/spring/resources/WEB-INF components.xml
applicationContext.xml
Log:
Fixes for: JBSEAM-1459, JBSEAM-1458, JBSEAM-1377
Revision Changes Path
1.14 +6 -0 jboss-seam/examples/spring/resources/WEB-INF/components.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: components.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/spring/resources/WEB-INF/components.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- components.xml 3 Jun 2007 20:56:49 -0000 1.13
+++ components.xml 14 Jun 2007 23:08:04 -0000 1.14
@@ -20,4 +20,10 @@
<spring:context-loader/>
<core:ejb installed="@embeddedEjb@" />
+
+ <!-- Install a ThreadPoolDispatcher to handle scheduled asynchronous event -->
+ <core:thread-pool-dispatcher name="threadPoolDispatcher"/>
+
+ <!-- Install the SpringDispatcher as default -->
+ <spring:task-executor-dispatcher schedule-dispatcher="#{threadPoolDispatcher}" task-executor="#{springThreadPoolTaskExecutor}"/>
</components>
1.5 +5 -1 jboss-seam/examples/spring/resources/WEB-INF/applicationContext.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: applicationContext.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/spring/resources/WEB-INF/applicationContext.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- applicationContext.xml 22 May 2007 02:20:44 -0000 1.4
+++ applicationContext.xml 14 Jun 2007 23:08:04 -0000 1.5
@@ -18,7 +18,9 @@
<tx:annotation-driven proxy-target-class="true"/>
- <bean id="userService" class="org.jboss.seam.example.spring.UserService"/>
+ <bean id="userService" class="org.jboss.seam.example.spring.UserService">
+ <seam:component/>
+ </bean>
<bean id="bookingService" class="org.jboss.seam.example.spring.BookingService">
<property name="entityManagerFactory" ref="seamEntityManagerFactory"/>
@@ -58,4 +60,6 @@
</property>
<property name="targetMethod" value="testNonWebRequest" />
</bean>
+
+ <bean id="springThreadPoolTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"/>
</beans>
More information about the jboss-cvs-commits
mailing list