167.6. 동적 클래스 이름을 사용하여 XML에서 Cryostat로 unmarshalling
jackson을 사용하여 XML을 unmarshal으로 해제하는 경우 메시지에 대해 unmarshal을 지정할 클래스 이름을 나타내는 헤더를 지정할 수 있습니다.
해당 헤더가 메시지에 있는 경우 헤더에는 키 CamelJacksonUnmarshalType 이 있으면 Jackson은 FQN을 Cryostat 클래스의 경우 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:
JacksonDataFormat format = new JacksonDataFormat();
format.setAllowJmsType(true);
또는 XML DSL에서 이를 다음과 같이 구성합니다.
<dataFormats>
<jacksonxml id="jacksonxml" allowJmsType="true"/>
</dataFormats>