File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,11 @@ By default, ephemeral nodes for locks will be created under `/shedlock` node.
217
217
If you are using Spring XML config, use this configuration
218
218
219
219
``` xml
220
+ <!-- lock provider of your choice (jdbc/zookeeper/mongo/whatever) -->
221
+ <bean id =" lockProvider" class =" net.javacrumbs.shedlock.provider.jdbctemplate.JdbcTemplateLockProvider" >
222
+ <constructor-arg ref =" dataSource" />
223
+ </bean >
224
+
220
225
<!-- Wrap the original scheduler -->
221
226
<bean id =" scheduler" class =" net.javacrumbs.shedlock.spring.SpringLockableTaskSchedulerFactory" factory-method =" newLockableTaskScheduler" >
222
227
<constructor-arg >
@@ -227,7 +232,7 @@ If you are using Spring XML config, use this configuration
227
232
</bean >
228
233
229
234
230
- <!-- Your task(s) without change -->
235
+ <!-- Your task(s) without change (or annotated with @Scheduled) -->
231
236
<task : scheduled-tasks scheduler =" scheduler" >
232
237
<task : scheduled ref =" task" method =" run" fixed-delay =" 1" fixed-rate =" 1" />
233
238
</task : scheduled-tasks >
You can’t perform that action at this time.
0 commit comments