Hi,

I'm not sure if there's a statement about servlet specification about
listener order but usually containers invoke listeners using the declaration
order during startup and in reverse order when the app shuts down.

I'd go with my own listener rather because the myfaces listener is shipped
in a taglib(although containers like jetty 5.1.2 does not support it) and
subclassing it may cause duplicate invocations.

Regards,

Cagatay

On 5/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Excellent idea. Thanks for the reply, Cagatay. Since I need to initialize
application-scoped managed beans in this code, the listener must execute
after org.apache.myfaces.webapp.StartupServletContextListener. Is the best
way to do this to subclass
org.apache.myfaces.webapp.StartupServletContextListener, specify my
subclass as the sole <listener-class> in web.xml (instead of after
org.apache.myfaces.webapp.StartupServletContextListener), call
super.contextInitialized() in my contextInitialized(), then execute my
code? I'm not aware of a way to specify <listener-class/> order in web.xml
.

Thanks agan,
Eric
_________________________

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the
exclusive use of the individual or entity named above and may contain
information that is privileged, confidential or exempt from disclosure under
applicable law. If the reader of this message is not the intended recipient,
or the employee or agent responsible for delivery of the message to the
intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by e-mail and delete the material from any computer.  Thank you.

Reply via email to