Skip to content

DBAL Message handler does not set messageID #1319

Open
@fperrony

Description

@fperrony

The DBAL Message handler does not set messageID when add by method setMessageId

Set

 $message->setMessageId('myId));

DbalProducer->send()...

    $dbalMessage = [
        'id' => Uuid::uuid4(),

Don't set id on database vield. Always create new

On Consume

$dbalContext->convertMessage(array $arrayMessage)

On convert, get id from database and set in headet changing de header

 public function setMessageId(string $messageId = null): void
{
    $this->setHeader('message_id', $messageId);
}

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions