cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cap for Java

770

Hi Team,

we want to make use of Cap for Java framework to deploy HANA content. However, the tutorial mentioned in the documentation: https://github.com/SAP-samples/cloud-cap-samples-java#prerequisites, follows the approach of having a separate NodeJS module inside the MTA Java-based project.

We want to know if we can have everything within the same application module without having to add a NodeJs module inside. We've heard about sideCar approach, but we understood that it's only for Multitenant apps, and our app only needs a shared and a single HANA container.

Could you please advise us? Do we really have to have a separate nodeJs module within our Java application for doing the HANA content deployment?

Kind regards,

Mustafa Sasa

SAP IoT

View Entire Topic
lothar_bender
Product and Topic Expert
Product and Topic Expert

You can use the cds init command to create your Java app including Node.js deployer app out of the box. Following the CAP grow as you go approach, you can use cds add later on to add more features as required later on.

cds init my-app --add java,samples,hana

The db deployer module provides a start script that is called when deploying to CF. This start script simply calls the HDI deployer to deploy all generated HANA artefacts - all quite straight forward 😉 Thus, you don't need to deal with Node.js development.