mark your service as EagerLoad See http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ioc/annotations/EagerLoad.html
Martijn On Wed, 2008-11-12 at 14:25 +0000, Charles Mason wrote: > Hi All, > > I am developing a web app using Tapestry 5, half of it is a > conventional CRUD DB interface style web app. The other part has a > data collector which runs in a separate thread every 4 hours. The > collector is currently implemented as a Tapestry 5 service so the web > app portion of it can access its status. > > My problem is at present it only initialises when the first request is > made for a page in the web app. Since the system will be very low > traffic and chances are the server its on will be shutdown/restarted > more often than most web facing servers, I would really like the > service to load when tapestry does. > > Is there anyway to get Tapestry's IOC to initialise the service at > Tapestry's start up rather than when the first page request is made? > > Charlie M > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]