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.

20 lines
896 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="myScheduler" pool-size="10" />
<bean id="testMessageSender"
class="com.example.sshd.service.MessageSender">
<property name="fromJID" value="" />
<property name="toJID" value="" />
<property name="message" value="" />
</bean>
<task:scheduled-tasks scheduler="myScheduler">
<task:scheduled ref="testMessageSender"
method="sendMessage" cron="* * * * * ?" />
</task:scheduled-tasks>
</beans>