Nov 22nd, 2009, 04:32 AM
Lazy Loading of Beans in DEV environment
I have a problem in my dev environment. I wrote some Webservices and are now about to write a MVC app.
In my MVC, a setup method of a bean (init-method) already calls a webservice method of the former mentioned ones. As I'm developing all services and the webapp in a single tomcat (though eclipse to be precise) the startup of the application container hangs, due to the fact, that the setup method with the webservice call gets invoked while starting tomcat (webservice timeouting as not ready yet). Startup fails.
I tried using default-lazy-init and local lazy-init in my config. But that doesnt help.
How can I stop spring from preinitializing beans in my dev. It would be ok, that first call to mvc takes longer, due to initialization process.
Thanks for your help.
Tags for this Thread