61.4.2. charset marshal 和 unmarshal 评估字段 MSH-18 中提供的 charset。如果此字段为空,则默认使用相应 Camel charset 中所含的 charset。从 HL7DataFormat 类继承时,您也可以通过覆盖 guessCharsetName 方法来更改此默认行为。 Camel 中的简写语法适用于众所周知的数据格式,常使用。然后,您不需要创建 HL7DataFormat 对象的实例: from("direct:hl7in") .marshal().hl7() .to("jms:queue:hl7out"); from("jms:queue:hl7out") .unmarshal().hl7() .to("patientLookupService"); from("direct:hl7in") .marshal().hl7() .to("jms:queue:hl7out"); from("jms:queue:hl7out") .unmarshal().hl7() .to("patientLookupService"); Copy to Clipboard Copied! Toggle word wrap Toggle overflow 前一个下一个