Configure and Deploy the Utility

Now, you need to configutr the utility’s credentials and attributes and then deploy it. All necessary code is provided within the GitHub repository, oracle-devrel/oci-arch-queue-demo, and detailed in its associated readme file. The code is annotated to make it possible for you to follow it and adapt it to meet your specific purposes. You can access this code from the Explore More topic elsewhere in this playbook.

Configure Credentials and Attributes

To configure credentials and attributes for the utility, do the following:

Note:

You can access the resources indicated below from the Explore More topic elsewhere in this playbook.
  • Obtain credentials for authentication and authorization; see Required Keys and OCIDs.
  • Populate the attributes in the standalone-queue.[sh|bat] file.

Deploy the Utility

With the infrastructure ready and software dependencies and the application configuration in place, you can deploy and use the utility.

  1. Run the application to create a new queue and start adding messages to this by using the command .bat or .sh script provided:
    Standalone-queue.[sh|bat] java send-new

    This will create an OCI Queue with the name provided. Note the OCID output to the console (or review the queue creation using the OCI Console). Details for accessing the console are in the OCI Queue documentation, accessible from the Explore More topic elsewhere in this playbook..

  2. Incorporate the OCID for the queue into the script that sets the value for QUEUEOCID. In a new shell, navigate to the code and run this command:
    Standalone-queue.[sh|bat] java info
    This will provide the information for the queue.
  3. Start the consumer:
    Standalone-queue.[sh|bat] java consume
    This should result in the shell displaying the messages generated by the provider (source).