380.3. 使用 SnakeYAML 库的 YAML 数据格式
将对象消息转换为 yaml,然后发送到 MQSeries
from("activemq:My.Queue") .marshal().yaml() .to("mqseries:Another.Queue");
from("activemq:My.Queue") .marshal().yaml() .to("mqseries:Another.Queue");
Copy to Clipboard Copied! Toggle word wrap Toggle overflow from("activemq:My.Queue") .marshal().yaml(YAMLLibrary.SnakeYAML) .to("mqseries:Another.Queue");
from("activemq:My.Queue") .marshal().yaml(YAMLLibrary.SnakeYAML) .to("mqseries:Another.Queue");
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 限制要从 YAML 加载的类
Copy to Clipboard Copied! Toggle word wrap Toggle overflow