Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
If it is a web application you can also use org.springframework.web.context.ContextLoaderListe ner or org.springframework.web.context.ContextLoaderServl et to perform bootstrap initializations. In that case the initialization code is executed only once.
Using a BeanPostProcessor might be problematic if the configuration is processed more than once (e.g. if you initialize pooled EJBs). In that case your init-code will be executed multiple times.