73.2. Java DSL 사용
예를 들어 다음에서는 여러 Java 패키지 이름으로 구성된 jqcow b 라는 이름의 DataFormat을 사용하여 CloudEvent BContext 를 초기화합니다.
DataFormat jaxb = new JaxbDataFormat("com.acme.model");
from("activemq:My.Queue").
unmarshal(jaxb).
to("mqseries:Another.Queue");
DataFormat jaxb = new JaxbDataFormat("com.acme.model");
from("activemq:My.Queue").
unmarshal(jaxb).
to("mqseries:Another.Queue");
Spring XML 파일을 통해 레지스트리에 정의할 수 있는 데이터 형식에 대한 이름이 지정된 참조를 사용할 수 있습니다.
from("activemq:My.Queue").
unmarshal("myJaxbDataType").
to("mqseries:Another.Queue");
from("activemq:My.Queue").
unmarshal("myJaxbDataType").
to("mqseries:Another.Queue");