Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
If a user already has a spring instance running, we should take advantage of that and use their context as our parent context. This can be done by doing:
ServletContext servletCtx = getServletContext();
ApplicationContext parent = (ApplicationContext) servletCtx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
This parent context should then be used to create a SpringBus.