This example Data Stream demonstrates how to use the Listener to return business data from a MongoDB database.
Refer to configuration to understand all configuration options of this Agent.

Step 1: Add the Agent

Drag the MongoDB Listener onto the canvas and rename the Agent. Link the output endpoint to the printer and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection and polling interval.

Step 3: Configure Server

Enter the Authentication details of the MongoDB database to which you want to connect: server, port number, and authentication type. In this case, leave the authentication type as Anonymous.

Step 4: Configure Database

Select the database. In this case, appdb.
Select the table or collection. In this case, business.
Select the field to monitor. In this case, Certificate Number.

Step 5: Configure Filtering & Sorting

No limit, filter, or sort is applied in this example. Refer to the configuration for further details on these properties.

Step 6: Results

Apply the changes, save the Data Stream, and publish it.
Click the Live Data View button. Observe that all rows from the MongoDB table, the business certificates, are printed.


Security Key
Data Stream
MongoDB Listener Example.xuc
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.