我将 java 对象从 JMS 发送方客户端传递给 mirth.Java 类如下所示:
public class OrderDetails implements Serializable{
private static final long serialVersionUID = -4617153110762983450L;
private Long mrn;
private Long orderNo;
private Long patientId;
private Long orderId;
private Long encounterId;
}
JMS 客户端代码如下所示:
public void sendMessage(final OrderDetails orderDetails) throws JMSException {
LOG.debug("Starting sendMessage of AMQMsgSenderService");
jmsTemplate.send(new MessageCreator() {
public Message createMessage(Session session) throws JMSException {
LOG.info("SENDING: " + orderDetails);
ObjectMessage message = session.createObjectMessage( orderDetails );
return message;
}
});
LOG.debug("Ending sendMessage of AMQMsgSenderService");
}
Mirth 中的连接器类型是JMS Reader。我想在源中接收java 对象并转换为XML 或 JavaScript Object。Mirth 有可能吗?我使用的是 Mirth 版本 2.2.1.5861。