Running the Sample Projects

The sample projects show how to use the plug-in to insert, query, update and remove documents or files in MongoDB. The sample projects also show how to get a MongoDB connection instance, run database command, listen to write operations in MongoDB, and perform map-reduce operations in MongoDB.

Prerequisites

Ensure that you have imported the sample projects to TIBCO Business Studio, as described in Importing the Sample Projects, and configured MongoDB Connection, as described in Configuring MongoDB Connection.

Procedure

  1. In the Project Explorer view, expand the Module Descriptors resource, and then double-click Components.
  2. By default, all the processes are listed in the Components editor. Select the process that you do not want to run and click the remove selected component icon.
  3. On the toolbar, click the Save icon to save your changes.
  4. From the menu, click Run > Run Configurations to run the selected process.
  5. In the Run Configuration dialog, expand BusinessWorks Application, and then click BWApplication.
  6. In the right panel, click the Applications tab, and select the check box next to Event_Sample.application, Hierarchical_Aggregation.application, or Metadata_and_Asset_Management.application.
  7. Click Run to run the selected process.
  8. Click the Terminate icon to stop the process.