hello
you just have to implements javax.servlet.ServletContextListener in a
class and use
void contextInitialized()  to make your initialization

(your class must be declared in web.xml as a listener)

you can see 
http://www.onjava.com/onjava/2003/01/08/examples/ContextListener.html
for example

julien



On Wed, 23 Mar 2005 15:32:37 +0100, Werner Punz <[EMAIL PROTECTED]> wrote:
> Ok this is not directly myfaces related, but since I dont know where to
> ask exactly, I think this place is good enough.
> 
> I have a small problem, I have a managed bean with an application scope.
> This bean should be initialized during the startup of the webapp.
> I dont see any standardized way to do this, since the bean seems to
> be initialized first at the first referencing call from the JSF code.
> (the bean has application scope)
> 
> I figured it out, that overriding the standard JSF servlet could to the
> trick, but I dont really want to do that. Does anybody know if there is
> another way to have the bean initialized during application startup?
> 
> 
> Werner
> 
>

Reply via email to