Message archive service
Magento2 uses message archive service to save incoming and outgoing JSON messages.
All the connectors send messages to queue. Message archive service fetches the message from the
queue and saves to the disk at the following location.
fileStoragePath/companyId/connectorName/dayOfMonth/fileName.extension
You can
mount this folder to docstore. Installing the connector
Proceed as follows to install the connector:
- Browse to the $TOP_CONNECTOR/connectors folder.
- Locate and extract the ipm12_connectors_12.0.0.X_YYYYDDMMZZZ.tar.gz base file.
- Set the $TOP_CONNECTOR environment variable to point to the extracted
folder:export $TOP_CONNECTOR=/opt/connectors/mdmce-connectors
- Enable the connector in the $TOP_CONNECTOR/conf/connector_settings.ini file.
- Run the installer script.
cd $TOP_CONNECTOR cd bin ./install.sh
- Update the application.properties file located in the following
folder:
$TOP_CONNECTOR/connectors/mdmce-message-archive-service/conf
For more information, see Updating properties file. - Start the connector from the $TOP_CONNECTOR/connectors/bin
folder:
./start_connectors.sh message-archive-service
Stop the connector through the following command:./start_connectors.sh -all
./stop_connectors.sh -all or ./stop_connectors.sh message-archive-service
- Check status of the connector through the following
command:
./status_connectors.sh -all or ./status_connectors.sh message-archive-service
Updating properties file
You need to update the following parameters in the
application.properties
file.- Hazelcast client configuration
-
hazelcast.groupName=mdmce-hazelcast-instance hazelcast.networkIpAddress=<hazelcasthostaddress>:5702 hazelcast.itemQueueUri=hazelcast-seda:message_archive_app_queue?pollTimeout=1000&concurrentConsumers=5&transferExchange=false&transacted=false&hazelcastInstance=hazelcastInstance
- File storage path on disk
-
app.fileStoragePath=