File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF2 Invoke Method on Application Startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF2 Invoke Method on Application Startup" Watch "JSF2 Invoke Method on Application Startup" New topic
Author

JSF2 Invoke Method on Application Startup

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Please in JSf 2 how do i get a method to execute as soon as the Server finishes loading up. I can do this in seam 2, But how do i do same in JSF2
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16054
    
  21

You can code a ContextListener that will execute as soon as the server has started the webapp. It's not a JSF-specific thing, though. Any J2EE app can use one.

To communicate with JSF, the listener can create application-scope objects. JSF can then address them as backing beans.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: JSF2 Invoke Method on Application Startup