You can annotate your service with EgarLoad. 

Hong

-----Original Message-----
From: Charles Mason [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 8:25 AM
To: Tapestry users
Subject: T5: Best Way to Start a Service at Deployment Time

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]

Reply via email to