Announcement Announcement Module
No announcement yet.
Lazy Loading of Beans in DEV environment Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lazy Loading of Beans in DEV environment

    Hi Folks,

    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.