How to use MongoDB services on the SAP cloud Platform

Source: Internet
Author: User

First, follow my article on the SAP Cloud platform to assign your account Mongbodb service: How to add a new service under cloud Foundry environment of SAP cloud Platform

Then download the SAP-provided sample program from this link.

1. Use the command line CF marketplace to view the version number of MongoDB for the current SAP Cloud Platform: On the SAP Cloud Platform I use is V3.0-dev

Create a service instance using the following command line:

CF Create-service MongoDB V3.0-dev mongo-service

2. To the root directory of the example program, use the command MVN package:

The command generates a Hcp-cf-mongodb-tutorial-1.0-snapshot.jar:

3. Edit Manifest.yml to specify the name of the program deployed to the SAP Cloud Platform:

4. CF push for deployment.

After successful deployment, you can see that the app is in started state in cockpit:

To access the app, you can see the following output:

This output is generated by Rootcontroller:

To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:

How to use MongoDB services on the SAP cloud Platform

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.