Re: [C++ binding] Complex types: defining an array of arrays of differing types

2018-03-28 Thread Kim van der Riet
Hi Chris, Thanks for the great suggestions. These are great solutions at a pure C++ level. I need to wait for the Proton folks to weigh in on what the Proton encoder can/will do. I don't think it will know what to do with a boost::variant. That part of the source is rather hard to penetrate (f

Re: [C++ binding] Complex types: defining an array of arrays of differing types

2018-03-28 Thread Chris Richardson
Is using boost::variant an option? Then you could use something like #include ... typedef boost::variant elem_type; std::vector array1 = {uint8_t(0), uint8_t(1)}; std::vector array2 = {true, false}; std::vector> array3 = {array1, array2}; This at least compiles, but I don't know if

Re: [C++ binding] Complex types: defining an array of arrays of differing types

2018-03-28 Thread Kim van der Riet
This is part of the Qpid Interop Test Suite, a test written for complex type interoperability. AMQP allows arrays of arrays of differing types, I am wanting to test this using the different bindings against each other - this is what the QITS does. In the case of the C++ binding, the default

Re: [C++ binding] Complex types: defining an array of arrays of differing types

2018-03-28 Thread Chris Richardson
The short answer is "you can't", at least not along the lines you're thinking. The std::vector type is a homogeneous container, see eg: this for more info: https://isocpp.org/wiki/faq/containers#heterogeneous-containers The upshot is that the elements of the vectors must have a common (base) type,

[C++ binding] Complex types: defining an array of arrays of differing types

2018-03-28 Thread Kim van der Riet
By default, using std::vector is encoded as an AMQP array, whereas std::vector is encoded as an AMQP list. So, to create an array of lists of differing types, for example: std::vector list1 = {uint8_t(0), uint8_t(1)}; std::vector list2 = {true, false}; std::vector > array = {list1, list2}; wor

[ANNOUNCE] Apache Qpid JMS 0.31.0 released

2018-03-28 Thread Robbie Gemmell
The Apache Qpid (http://qpid.apache.org) community is pleased to announce the immediate availability of Apache Qpid JMS 0.31.0. This is the latest release of our newer JMS client supporting the Advanced Message Queuing Protocol 1.0 (AMQP 1.0, ISO/IEC 19464, http://www.amqp.org), based around the A

Re: Issue in connecting qpid broker j from qpid proton java libraries

2018-03-28 Thread Robbie Gemmell
First, it seems from your logs that you are running low on disk space and so the broker is flow controlling the virtualhost / its queues. I expect that means it wont grant new credit to a new sender, and so wont accept new messages. The example I think you are using closes its connection after succ

Issue in connecting qpid broker j from qpid proton java libraries

2018-03-28 Thread Venkat Nani
Hi Team, I am facing issue in connecting qpid broker j from qpid java client. I using the libraries and code which is apache.org which is also in git hub. https://github.com/apache/qpid-proton-j/tree/master/examples I could see the connection established in qpid broker j but not able to post the m