You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
803 B
19 lines
803 B
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:task="http://www.springframework.org/schema/task"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task.xsd
|
|
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
|
|
<task:scheduler id="inspectionScheduler" pool-size="2" />
|
|
|
|
<bean id="inspectionClient"
|
|
class="com.example.sbcamel.service.InspectionClient">
|
|
</bean>
|
|
|
|
<task:scheduled-tasks scheduler="inspectionScheduler">
|
|
<task:scheduled ref="inspectionClient"
|
|
method="sendMessage" cron="0 * * * * ?" />
|
|
</task:scheduled-tasks>
|
|
|
|
</beans> |