On Thu, May 27, 2010 at 5:46 PM, Victor_Trapiello <[email protected]>wrote:
> > Hello guys! > > I had a terrible day because one of my bosses complain about how I have > done > one task of a project, we had to implement "something" that updates a field > in the database, my brilliant idea was to create a thread inside the wicket > init method that makes a query to the database every 3 hours and updates > the > fields. > > My boss said that it is not a good practice and he recomended to use > something like in Struts called "Timers", do we have something like that in > wickets¿? > > how can I implement this behaviour without a thread¿? I mean something > that > is executing since my application is deployed and executing a method every > N > time!! > > thank you very much guys, I go to sleep in Spain it is 1.00 AM and tomorrow > I have to go to work!! > > Waiting some feedback > > Cheers!! > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Very-interesting-question-my-boss-complain-about-one-of-my-implementations-tp2233874p2233874.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > Does the "update" to the database have anything to do with the webapp? Or is it something totally unrelated? You don't really give us enough information to go on. Struts timers (at least the ones I know of) are for timing how long a webpage takes to render. Perhaps he's confused with TimerTasks, which are in Java, not Struts. -- Jeremy Thomerson http://www.wickettraining.com
