title: How to delay spring beans startup?
body: <p>Having spring application (actually grails app) that runs apache-activemq server as spring bean and couple of apache-camel routes. Application use hibernate to work with database. The problem is simple. Activemq+Camel starts up <code>BEFORE</code> grails injects special methods into hibernate domain objects (actually save/update methods etc). So, if activemq already has some data on startup - camel starts processing messages w/o having grails DAO methods injected. This fails with <code>grails.lang.MissingMethodException</code>. Must delay activemq/camel startup before Grails injects special methods into domain objects.</p>