[jboss-cvs] jboss-seam/examples/spring/resources/WEB-INF ...

Michael Youngstrom youngm at gmail.com
Tue Mar 20 17:33:03 EDT 2007


  User: myoungstrom
  Date: 07/03/20 17:33:03

  Modified:    examples/spring/resources/WEB-INF  applicationContext.xml
  Log:
  Committ for issue: JBSEAM-1074
  
  Revision  Changes    Path
  1.2       +22 -0     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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- applicationContext.xml	12 Mar 2007 20:37:06 -0000	1.1
  +++ applicationContext.xml	20 Mar 2007 21:33:03 -0000	1.2
  @@ -28,4 +28,26 @@
       <seam:configure-scopes />
       
       <seam:instance id="em" name="entityManager" proxy="true"/>
  +    <bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean" lazy-init="false">
  +	    <property name="scheduledTimerTasks">
  +	        <list>
  +	            <!-- see the example above -->
  +	            <ref bean="scheduledTask" />
  +	        </list>
  +	    </property>
  +	</bean>
  +    <bean id="scheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
  +	    <!-- wait 10 seconds before starting repeated execution -->
  +	    <property name="delay" value="10000" />
  +	    <!-- run every 50 seconds -->
  +	    <property name="period" value="50000" />
  +	    <property name="timerTask" ref="doIt" />
  +	</bean>
  +	
  +    <bean id="doIt" class="org.springframework.scheduling.timer.MethodInvokingTimerTaskFactoryBean">
  +	    <property name="targetObject">
  +	    	<seam:instance name="#{bookingService}"/>
  +	    </property>
  +	    <property name="targetMethod" value="testNonWebRequest" />
  +	</bean>
   </beans>
  
  
  



More information about the jboss-cvs-commits mailing list