You can use a servlet context listener to initialize your application
too.

On Jan 8, 12:20 pm, Brad Larson <bklar...@gmail.com> 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 Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to