How to access internal id of a Message in qpid broker?

Solution Verified - Updated -

Issue

Are there any ways to access internal id of a Message to be used with, let's say, third party qpid binding to invoke methods in qpid-cpp-client:

Session::acknowledge(Message&, boolean);
Session::acknowledgeUpTo(Message&, boolean);
Session::reject(Message&);
Session::release(Message&);

These are required for implementing a qpid binding for Erlang programming language where the following use case seems to require the message ID:

  • The user would like to create a subscription to a queue
  • The user has specified that receiver capacity is 100
  • There are more than 100 messages on the broker, so the broker pushes 100 messages to the client
  • Then these messages should be processed and acknowledged sequentially.

The messages are received on the C++ side and then they are passed one by one to the erlang side, so acknowledgement is initiated on the erlang side. Erlang has to uniquely identify a message to acknowledge, ideally using the internal message ID.

Environment

  • MRG Messaging (any version)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content