300.9.4. 생성된 CamelContext 액세스

Camel 2.14/2.13.3/2.12.5로 사용 가능

생성된 CamelContext 는 ServletContext 에 "CamelContext" 키가 있는 속성으로 저장됩니다. 다음과 같이 ServletContext 를 보유할 수 있는 경우 CamelContext를 보유할 수 있습니다.

ServletContext sc = ...
CamelContext camel = (CamelContext) sc.getAttribute("CamelContext");