我是JBoss Fuse平台的新手,我正在尝试运行一个简单的Apache路径来发送电子邮件。传入的消息可能是指定类型的T,但也可能有一个XML,然后我需要使用JAXb解除封送,以获得T类型的对象,所以我需要一个过滤器来检查传入消息类型是否不是T,然后解除封送。我怎样才能做到这一点?我需要这样的东西:
<filter>
<simple>${body.type} != 'T'</simple>
<unmarshal ref="jaxB" />
</filter>发布于 2015-09-01 15:34:52
这个怎么样?
<filter>
<simple>${body} not is 'your.class.Type'</simple>
<unmarshal ref="jaxB" />
<to ... />
</filter>或
<filter>
<simple>${body} is 'java.lang.String'</simple>
<unmarshal ref="jaxB" />
<to ... />
</filter>https://stackoverflow.com/questions/32324737
复制相似问题