Thanks jhulford!

A servlet context listener seems to be the perfect solution.  Is there
a GWT-approved way to register one with the hosted-mode Tomcat
server?  I searched the forums a bit, but only found a few hacks:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/23373cff5f674dd0/744c2efd5b28cf34?lnk=gst&q=listener-class#744c2efd5b28cf34

Thanks!
-Brad


On Jan 9, 8:29 am, jhulford <[email protected]> wrote:
> You can use a servlet context listener to initialize your application
> too.
>
> On Jan 8, 12:20 pm, Brad Larson <[email protected]> wrote:
>
> > Hello friends,
>
> > What is the best way to run code on my server when my servlet is
> > loaded?  I'd like to do some database initialization work which the
> > servlet is expecting.  I could use a static variable in the servlet to
> > see if it is being ran for the first time, and do the init there, but
> > that seems like a hack to me.
>
> > I have googled around and found a couple references to
> > ServletContextAttributeListener, but that seems like just as big of a
> > hack.  Is there a GWT-approved method for doing anything like this?
>
> > Thanks!
> > -Brad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to