vert-x3 / vertx-amqp-client

An AMQP client for Vert.x
Apache License 2.0
17 stars 18 forks source link

Extra Message Annotations Support #40

Open obbyK opened 4 years ago

obbyK commented 4 years ago

I can see there are some already supported message annotations options in AmqpMessage like withAddress(String) and WithId(String) but no option to add any other message annotation with name and value, could be With(String,String). This would allow support for scheduled messages interoperability with JMS. Artemis uses the annotations x-opt-delivery-time and x-opt-delivery-time for scheduling messages. I had raised this issue on mutiny reactive messaging here and saw it depends on this client.

obbyK commented 4 years ago

I can see the that the org.apache.qpid.proton.message.Message under the hood has getMessageAnnotations and set setMessageAnnotations and these are the same annotations used by ActiveMQ in this class InboundTransformer to map the AMQP x-opt-delivery-* annotations to the JMS ScheduledMessage.AMQ_SCHEDULED_* properties.