Documentation
You are currently viewing documentation for version 3.0 which is not a long-term support release. The latest long-term support release is version 2.6

Message Topic

Message Topic is used to differentiate the groups of messages. Message Topics is a mandatory part of Pub/Sub messaging pattern that used in Oro applications. Thereby every message In Oro applications must have a Message Topic information in order to be sent to message queue.

If your bundle declares one or more Message Topics, it’s recommended to create dedicated dictionary class for Message Topic names in bundles Async folder. For example:

1
2
3
4
5
6
7
8
9
<?php

namespace App\Acme\Bundle\CustomBundle\Async;

class Topics
{
    const REPORT_GENERATION = ‘acme.custom.report_generation’;
    const CALCULATE_TAXES = ‘acme.custom.calculate_taxes’;
}

To list all declared topics with their destriptions that have at least one subscribed Message Processor, use the command

./bin/console oro:message-queue:topics

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.desso for oroinc.frsso for marketplace.orocommerce.comsso for marketplace.orocrm.com