Presently I am using Spring 2.5 and EJB 3.0. I am able to wire my spring beans to EJB via using beanRefContext.xml and the using the following code snippet inside.
Now My Doubt or rather the issue is. How to load the spring beans at deployment time itself ? This is required because i am facing problem while trying to start a cron schduler. The scheduler is not loaded at deployment time.
<bean id="factoryKey" class="org.springframework.context.support.ClassPathXmlApplicationContext" lazy-init="false">
<constructor-arg type="java.lang.String" value="classpath:/META-INF/context/application.xml" />
Is there any clean way to load spring beans at deployment time ( during the time, when the application is started in the server ) ?
Thanks is advance.