Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

T5: Best Way to Start a Service at Deployment Time

Charles Mason

2008-11-12

Replies: Find Java Web Hosting

Author LoginPost Reply
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: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.