I have most recently started work on a series of projects migrating some webapps away from a legacy EJB core to use a Spring core. The why is not important but the what is that when we wanted to access the Spring beans we had to do a bit of searching to find out how. It is actually very simple using WebApplicationContextUtils.getRequiredWebApplicationContext() to return an application context. I have outlined below the simple process.
WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); BeanManager bm = (BeanManager) wac.getBean("BeanManagerID");
In the example above you enter the beanID that was defined in the applicationContext.xml and then you can access the bean. It is important to note that the application should be Spring aware before you can use this functionality.
I hope you have found this useful if you have any questions leave a comment below or email support[@]tomizone.com.


