-
I need to load some java objects into servlet context during app server startup. I used struts plug-in interface implemented classes in my previuos project. Is there any interface provided by JSF framework so that I can implement it and load my objects into context during app server startup? I appreciate even if there are any other ways for this. I can't extend faces servlet(i.e limitation), so I can't do it in init method of my controller servelt. Am I left with just JSF event methods?
-
Could you not create a managed bean with a scope of "application" that should do the trick
-
I should create a class that uses the ServletContextListener (so it gets the contextInitialized / contextDestroyed) and register this class as a Listener in your web.xml