IN JSP i used to put things in bean's constructor which is in APPLCIATION scope,
i want to load a function upon deploy of application where i can put .
i tried putting in listener but @ that time i am not getting faces config 's injection .
so is there any way out ?
here is my faces-config
In JSF 2.0 there is a system event that you can listen for during initialization. So it's pretty straightforward.
In JSF 1.2, the best way to do this might depend on what you are trying to accomplish. But you can always do initialization with a ServletContextListener. ServletContext.setAttribute() puts things in application scope.