myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "::SammyRulez::" <>
Subject Re: how to execute one-time start-up code?
Date Fri, 18 May 2007 14:43:13 GMT
can't you do it in the bean constructor?

2007/5/18, <>:
> 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
>  _________________________
>  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.

La programmazione รจ per un terzo interpretazione e per due terzi ispirazione.
 E per un terzo mistificazione

View raw message