Yes, but how to invoke bean constructor at startup?
"::SammyRulez::" <[EMAIL PROTECTED]> 05/18/2007 10:43 AM Please respond to "MyFaces Discussion" <[email protected]> To "MyFaces Discussion" <[email protected]> cc Subject Re: how to execute one-time start-up code? can't you do it in the bean constructor? 2007/5/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > 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 _________________________ 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.

