375.5. XML 구성 사용
Spring XML 파일에서 경로를 구성하는 경우 다음과 같이 8601 식을 사용할 수 있습니다.If you prefer to configure your routes in your Spring XML file then you can use DAX expressions as follows:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring" xmlns:foo="http://example.com/person">
<route>
<from uri="activemq:MyQueue"/>
<filter>
<xpath>/foo:person[@name='James']</xpath>
<to uri="mqseries:SomeOtherQueue"/>
</filter>
</route>
</camelContext>
</beans>이 경우 네임스페이스 접두사, foo 를 재사용하여 더 쉬운 네임 스페이스 기반 XPath 표현식을 위해 XPath 표현식에서 사용할 수 있는 방법을 확인하십시오!
또한 Xpath와 함께 고유한 네임스페이스를 사용하는 방법에 대한 메일링리스트에 대한 자세한 내용 을 참조하십시오.