Marcus Krantz created CAMEL-7266:
------------------------------------
Summary: TraceEventMessage should not return String in methods
getProperties() and getHeaders()
Key: CAMEL-7266
URL: https://issues.apache.org/jira/browse/CAMEL-7266
Project: Camel
Issue Type: Wish
Components: camel-core
Reporter: Marcus Krantz
I would like to save trace event messages into a MongoDB. Since there is no
need for a schema, I would like to persist properties and headers as pure json.
In the DefaultTraceEventMessage the properties map as well as the headers map
are converted to Strings (using toString()) due to the fact that the
TraceEventMessage interface defines the methods getProperties() and
getHeaders() to return a String. It would be much better if the headers and
properties could be left as is (Map<String, Object>) which would allow me to
persist the maps directly to my NoSQL-database.
--
This message was sent by Atlassian JIRA
(v6.2#6252)