(Migrated) AMQP self.request - envelope and properties

(This message has been automatically imported from the retired mailing list)

Is there a way to access the AMQP ‘envelope’ and ‘properties’ values?
There are meta data values in both that I need for my service.

Thanks!

On 24/03/15 16:39, Michael Dyer wrote:

Is there a way to access the AMQP ‘envelope’ and ‘properties’ values?
There are meta data values in both that I need for my service.

Hi Michael,

it’s not possible right now - both method and header frames are
discarded upon receiving a message and only body is used.

But it would be easy to make it available to services.

This is the callback executed each time a message arrives:

https://github.com/zatosource/zato/blob/master/code/zato-server/src/zato/server/connection/amqp/channel.py#L160

The callback above calls this method asynchronously:

https://github.com/zatosource/zato/blob/master/code/zato-server/src/zato/server/base/worker.py#L947