Hi,
In my previous web project I have written a servlet and in its init() method i perform the initialization(such as creating a database handler etc).
Now i want to implement the above functionality in JSF also ie: when the container is started the database handler instance should already be created before the user(client) visit the site(any jsp/jsf page).
I am new to JSF so i would appreciate how to perform the above thing in JSF.
Should I configure the above servlet's load on start up parameter in the web.xml or is there any alternative way to perform it in JSF?
Thanks.
In my previous web project I have written a servlet and in its init() method i perform the initialization(such as creating a database handler etc).
Now i want to implement the above functionality in JSF also ie: when the container is started the database handler instance should already be created before the user(client) visit the site(any jsp/jsf page).
I am new to JSF so i would appreciate how to perform the above thing in JSF.
Should I configure the above servlet's load on start up parameter in the web.xml or is there any alternative way to perform it in JSF?
Thanks.