Java Reference
In-Depth Information
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<context:annotation-config />
<!-- sample Runnable -->
<bean
id="task"
class="com.apress.springenterpriserecipes.spring3.
executors.DemonstrationRunnable" />
<!-- TaskExecutors -->
<bean
class="org.springframework.core.task.support.TaskExecutorAdapter">
<constructor-arg>
<bean
class="java.util.concurrent.Executors"
factory-method="newCachedThreadPool" />
</constructor-arg>
</bean>
<bean
class="org.springframework.core.task.SimpleAsyncTaskExecutor"
p:daemon="false" />
<bean
class="org.springframework.core.task.SyncTaskExecutor" />
<bean
id="timerTaskExecutorWithScheduledTimerTasks"
class="org.springframework.scheduling.timer.TimerTaskExecutor">
<property
name="timer">
<bean
class="org.springframework.scheduling.timer.TimerFactoryBean">
<property
name="scheduledTimerTasks">
<list>
<bean
class="org.springframework.scheduling.timer.ScheduledTimerTask"
p:delay="10"
p:fixedRate="true"
p:period="10000"
p:runnable-ref="task" />
</list>
</property>
</bean>
</property>
</bean>
Search WWH ::




Custom Search