Hi Pierre, Funnily enough I've just met a similar problem - a start up serlvet that fires up a number of server resources, but I cannot start it in hosted mode because you can't doctor the embedded Tomcat web.xml. I hacked around this by sticking an init() in one of my early call servlets that checks if things have been set up (which they will have been if deployed) and if not kicks off the start up procedures.
Having thought about it a more satisfactory approach might be to use an if (!GWT.isScript()) {}; statement at the head of onModuleLoad() that called a simple RPC service that booted the start up procedures for hosted mode, but would be ignored in production. regards gregor On Dec 9, 5:06 pm, Pierre Lavignotte <[EMAIL PROTECTED]> wrote: > Hi all, > > I've added a basic HttpServlet in my GWT application. > No problem with that, except that I want that servlet to start on the > application start-up. > > So I've added the <load-on-startup>1</load-on-startup> to my servlet > declaration in web.xml but it has no effect in hosted mode. > However, it works when I deploy the application to my WAS. > > Is there any way to make it work in hosted mode ? > > (please don't tell me to run with no-server option :) ) > > Thank you, > Pierre --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---