The AMQP Spec says a AMQP Message can have “one or more data sections” (see link below) Proton-j Message (https://qpid.apache.org/releases/qpid-proton-j-0.33.4/api/org/apache/qpid/proton/message/Message.html) setBody(Section body) (does not allow multiple Section to be set in body) Data implement Section (https://qpid.apache.org/releases/qpid-proton-j-0.33.4/api/org/apache/qpid/proton/amqp/messaging/Data.html) https://qpid.apache.org/releases/qpid-proton-j-0.33.4/api/org/apache/qpid/proton/amqp/messaging/Section.html So here is how we are doing. Message amqpMessage = Proton.message(); byte[] body = “my data”.getBytes();
amqpMessage.setBody(new Data(new Binary(body))); How can I support "one or 'more' data sections" using this library, It only support 'One Data section' ? Spec : http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type- http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-data Hemant -- Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-developers-f7254403.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
