Martin,
I'd take a look at the schedule-provider (http://docs.jboss.org/jbossesb/docs/4.11/manuals/html/Programmers_Guide/index.html#d0e1801). There's a few quickstarts that make use of it (helloworld_ftp_action / transform_EDI2XML_Groovy_XSL) if you want to try and use their jboss-esb.xml as an example.
--Tom