I am developing project by using Spring 3.0, JSF 2 . so what my requirement is when application load at first time load the some data to HashTable and ArrayList(whatever Collection). this is my web.xml file
how i can use init param to load some data to HashTable or ArrayList. give me your valuable comment..
Thanks in Advance
Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
Thank you for valuable link.what I want is when application load at first time load the some data to HashTable and ArrayList from database table. how i can manage it?
Thanks in advance..........
Sorry Sagar. How do you even know if they have a web application?
For a Spring application, and for some simple task like what is needed here, a ContextListener is way overkill.
So an init-method is just a method that runs right after an object gets instantiated and all its dependencies and properties have been set.
SomeClass will be instantiated by Spring, the dataSource dependency will be injected, any properties will be set, then the someMethod method will be called.