myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "::SammyRulez::" <sammyru...@gmail.com>
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, eric.jung@novartis.com <eric.jung@novartis.com>:
>
> 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.
>


-- 
::SammyRulez::
http://www.kyub.com/blog/
-----------------------------------------------------------------
La programmazione รจ per un terzo interpretazione e per due terzi ispirazione.
 E per un terzo mistificazione

Mime
View raw message