Werner,

yes like suggested use the ServletContextListener.

However, you are not allowed to extend the FacesServlet,
since it is marked (in Spec) as "final".

I know, MyFaces does not, but I think that is related to
Weblogic and that MyFacesServlet (which extends FacesServlet)
(see [1])

-Matthias

[1]http://myfaces.apache.org/javadoc/org/apache/myfaces/webapp/MyFacesServlet.html

Werner Punz 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