Are there specific features in Spring for the initialisation of an application? For example creating directories, making sure a lucene index exists. At the moment I have those requirements in my init functions in my services (the init functions are called by spring), but I`m not to happy with it because it doesn`t always make much sense to add that responsibility to the service. And I`m not 'sure' which init function is called first.
I would rather see a 'startup' section (and a shutdown section would be nice to)
The startup section is always called first... and the shutdown section always is called last.


Reply With Quote