Hi! My parameter service needs to connect to database, inspect that all parameters are inplace, and if there are missing (new) parameters I have to create them and assign default values. This should occur every time that the application is started.
How do I do it? I read the IoC Registry startup, but I don't know how to inject services to the Runnable. I have following code that is working in my Tapestry Module: static Log log = LogFactory.getLog(EblanketterModule.class); public static void contributeRegistryStartup(OrderedConfiguration<Runnable> configuration) { configuration.add("InitializeDatabaseParams", new Runnable() { public void run(){ log.info("At startup"); } }); } -- View this message in context: http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17558546.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]