Re: How long does my Webapplication live?

2009-07-31 Thread Ben2008
Very useful indeed. And yes i mean serverside lifecycle. Is there a way to subscibe to server startup process? I want to initialise some things if my server starts. For example create my database connection pool. I dont want to wait for the first user request to do all that stuff. Thank you in

Re: How long does my Webapplication live?

2009-07-31 Thread Isaac Truett
You can configure a servlet to load on startup in web.xml and then do your startup work in the servlet's init() method. servlet servlet-nameMyServlet/servlet-name servlet-classfoo.bar. MyServlet /servlet-class load-on-startup1/load-on-startup /servlet On Fri, Jul 31, 2009 at 12:54 PM,

Re: How long does my Webapplication live?

2009-07-30 Thread Isaac Truett
Ben, I think you may be confused about the boundary between your GWT client and your server. The EntryPoint is just the first piece of your code that gets executed on the client, like a main() method. Any variables you declare in the EntryPoint or elsewhere in client code remain as long as the

How long does my Webapplication live?

2009-07-28 Thread Ben2008
Hi Folks, If I have a heavy load web application i do not want to rebuild some data (eg. creating instances and loading stuff from database etc.) for every page request. I want to do that once at startup or any later point and keep things alive as long as my webservice is online.And i would