Skip to content

Instantly share code, notes, and snippets.

@lucastex
Created May 19, 2011 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucastex/980075 to your computer and use it in GitHub Desktop.
Save lucastex/980075 to your computer and use it in GitHub Desktop.
Spring resources.xml file for grails application - scheduling tasks
<?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:context="http://www.springframework.org/schema/context"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<task:scheduled-tasks>
<task:scheduled ref="executorService" method="exec" cron="* * * * * ?"/>
</task:scheduled-tasks>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment