72.4. 동적 클래스 이름을 사용하여 XML에서 iPXE로 요약 해제
jackson을 사용하여 XML을marshal으로 해제하는 경우 이제 표시할 클래스 이름을 나타내는 헤더를 메시지에 지정할 수 있습니다.
해당 헤더가 메시지에 있는 경우 헤더에 키 CamelJacksonUnmarshalType
이 있는 경우 Jackson은 해당 헤더를 FQN으로 사용하여 XML 페이로드를 로 요약합니다.
For JMS end users there is the JMSType header from the JMS spec that indicates that also. To enable support for JMSType you would need to turn that on, on the jackson data format as shown:
For JMS end users there is the JMSType header from the JMS spec that
indicates that also. To enable support for JMSType you would need to
turn that on, on the jackson data format as shown:
JacksonDataFormat format = new JacksonDataFormat(); format.setAllowJmsType(true);
JacksonDataFormat format = new JacksonDataFormat();
format.setAllowJmsType(true);
또는 XML DSL에서 이 값을 다음과 같이 구성합니다.
<dataFormats> <jacksonxml id="jacksonxml" allowJmsType="true"/> </dataFormats>
<dataFormats>
<jacksonxml id="jacksonxml" allowJmsType="true"/>
</dataFormats>