Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBAL Message handler does not set messageID #1319

Open
fperrony opened this issue Oct 26, 2023 · 0 comments
Open

DBAL Message handler does not set messageID #1319

fperrony opened this issue Oct 26, 2023 · 0 comments

Comments

@fperrony
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant