Override GenericServlet.init().

On Thu, Jan 8, 2009 at 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