openplans/opentripplanner-analyst — Issue #13: share graph between otp modules
Author: andrewbyrd
Created: 2012-01-31 11:06:40+00:00
State: open
Labels: server

Ideally we could deploy any combination of opentripplanner-analyst, opentripplanner-api-webapp, and the system map on the same server and have them share a single GraphService.

This seems to be posssible under Spring:

http://blog.springsource.org/2007/06/11/using-a-shared-parent-application-context-in-a-multi-war-spring-application/

http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/web/context/ContextLoader.html#loadParentContext(javax.servlet.ServletContext)

http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/beans/factory/access/SingletonBeanFactoryLocator.html