Skip to Content

Deploying your Java app to SAP Cloud Platform

Previous

Deploying your Java app to SAP Cloud Platform

By akula86

Deploying your Java app to SAP Cloud Platform

You will learn

In the final part of this tutorial series you will learn how to deploy your Java application to SAP Cloud Platform.

Details


Step 1: Create a new server

Create a new server by opening up the corresponding context menu on the Servers view and selecting New > Server. Enter the following and click Next.

  • Server type: SAP Cloud Platform
  • Landscape host: hanatrial.ondemand.com
  • Server name: SAP Cloud Platformon hanatrial
Creating the SAP Cloud Platform server in your project
Please log in to access this content.
Step 2: Configure the server

Configure the new server with the following and click Next.

  • Application name: weatherapp
  • Runtime: Java Web
  • Account name: <userid>trial
  • User name: <userid>
  • Password: <SCN password>
Configuring the SAP Cloud Platformserver
Please log in to access this content.
Step 3: Add weather app

Select the weatherapp on the list on the left and add it to the (remote) server by clicking on the Add button. Then, click on Finish.

Please log in to access this content.
Step 4: Create an SAP Cloud Platform Destination

Now create an SAP Cloud Platform Destination for the remote server via the SAP Cloud Platform cockpit (similar to what was done in section 8 for our local server). Enter the following:

  • Name: openweathermap
  • Type: HTTP
  • Description: openweathermap service
  • URL: http://api.openweathermap.org/data/2.5/weather?APPID=YOUR_APPID
  • Proxy Type: Internet
  • Authentication: NoAuthentication
Creating a new destination in SAP Cloud Platform for the external weather service
Please log in to access this content.
Step 5: Publish the app

Finally publish the application to the (remote) server and run it. You app should look like this:

Screenshot of the Java app running on HCP
Please log in to access this content.

Next Steps

Updated 03/24/2017

Time to Complete

10 min

Intermediate

Tags

Next Steps

Next
Back to top