Here we deploy the war directly to the SAP HCP( HANA Could Platform) not from the Eclipse. Yes they do have written some tools for eclipse where we can connect to HANA Could and we can deploy from the eclipse.
In this we see the steps to deploy the Java Web application to SAP HCP. You need to follow some steps while developing the Dynamic web application in eclipse follow the below post for
- Creating the Dynamic web application
- Creating the HANA Database
- Creating the HANA Datasource binding
- Configure HANA database with Hibernate + JPA
Here we use the trail HANA Cloud account so we can deploy only one application.
1: Login to the SAP HCP Cockpit
2: Click on the “Java Applications” from the left side Navigation panel.
3: Click on “Deploy Application”. if you already have one you can delete the application but need to stop the application before deleting.(Note : if the binding is already created select the check box to say not to delete the binding).
4: Select the war file
5: The name of the application will be generated automatically based on war file name.
6: Runtime has to select very carefully, check this link to chose Runtime, in our example we will use “Java Web Tomcat 7”
7: Other Things dont change, these are related to process and CPU’s other stuff we will not worry now.( even i dont know much about these, i have trail version 😦 ). these can be configured when we have licence in trail version they have some limitations.
8: Click “Deploy”, it will upload the .war file the it ask to start.
9. if you already have the data binding created you can start. Other wise just close.
10. To create binding follow the post last section.
11. Then Start the Application from SAP HCP Cockpit.