Message Header Properties #436
Closed
ChristophBachmann
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hello @ChristophBachmann, The API you're looking for is available via message For instance var message = new Message("my-payload");
const string TRACE_ID = "TRACE_ID";
string traceId = Guid.NewGuid().ToString("D");
message.ApplicationProperties[TRACE_ID] = traceId;
var producer = await connection.CreateProducerAsync("a1", RoutingType.Anycast);
await producer.SendAsync(message); Best, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Java, there is the possibility using the JSMContext (Java Message Service) to add specific header properties to a message (using setProperty(KEY, VALUE) method). Here is a code example in Java:
Is there a possibility to set those properties in Artemis Message as well? Would it be possible to add this feature, or maybe another workaround? It would be very nice and helpful to be able to send those message header properties.
Best regards
Chris
Beta Was this translation helpful? Give feedback.
All reactions