On Wed, Jun 29, 2022 at 4:53 PM Tiaan Wessels <[email protected]> wrote: > Thanks. When a topic varies per message, would it not be better to be able > to set it per message. With the current design it seems one would need to > create a new session per message if you want to vary the topic? It seems > the only address that can be set into a message is the reply-to if i am not > mistaken.
In AMQP 1.0 a message has both a 'subject' and a 'to' field. The subject can be set through qpid::messaging::Message::setSubject. The to field must be set through a special property key, x-amqp-to. If/how those to fields are used in routing a message depends on the broker in use The qpid::messaging API predates the AMQP 1.0 spec, so does not directly support everything in 1.0. Generally the proton API for c++ is recommended for new 1.0 based applications. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
