|
@ -279,7 +279,7 @@ public class JMSAppender extends AppenderSkeleton {
|
|
|
}
|
|
|
ObjectMessage msg = topicSession.createObjectMessage();
|
|
|
String message = event.getMessage().toString();
|
|
|
String body = message.substring(message.indexOf("Body:") + 5);
|
|
|
// String body = message.substring(message.indexOf("Body:") + 5);
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("exchangeId", StringUtil.toString(event.getMDC("camel.exchangeId")));
|
|
|
map.put("correlationId", StringUtil.toString(event.getMDC("camel.correlationId")));
|
|
@ -287,7 +287,7 @@ public class JMSAppender extends AppenderSkeleton {
|
|
|
map.put("routeId", StringUtil.toString(event.getMDC("camel.routeId")));
|
|
|
map.put("breadcrumbId", StringUtil.toString(event.getMDC("camel.breadcrumbId")));
|
|
|
map.put("camelContextId", StringUtil.toString(event.getMDC("camel.contextId")));
|
|
|
map.put("body", body);
|
|
|
map.put("body", message);
|
|
|
map.put("fireTimeSource", DateUtil.toStringFormatGMTTime(DateUtil.toGMTTime(event.getTimeStamp()), DateUtil.DEFAULT_TIMESTAMP_FORMAT));
|
|
|
msg.setObject(JSONObject.fromObject(map).toString());
|
|
|
|