on 2022 Nov 19 6:00 PM
I have a running CAPM application deployed on XSA on On premise HANA Database .
Question : I want to deploy this CAP application to Cloud Foundry in BTP , use its XSUAA but the DB must still be my on premise DB .
Can I do that ? if yes - how would I configure my hana service instance / user provided service in BTP ?
( in my on premise, after the application is deployed, I removed the DB service binding from the application and then tried to set the environment variable VCAP_SERVICES manually - System didn't obvioulsy let me do that )
Sreehari
Hi Sreehari,
the best option that I see would use SSO from BTP via Cloud Connector using X.509 Client Certificates. You can follow Configure SSO with X.509 Authentication for XS Advanced Applications to setup this on the XSA part. For cloud connector you have to adopt the documentation Configure Principal Propagation for HTTPS for XSA. I've already used this technique to get SSO to a non SAP Java based solution.
I would suggest to host the UI5 part of your app in BTP and let CAP handle the OData part on HANA XSA.
Best Regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct.
Hi Sreehari,
when you deploy a CAP application the connection to the HANA database is automatically taken care of by the hdi-shared service instance, which contains a service key.
This service key contains the connection details to the cloud database via jdbc together with schema name, certificate, user, password etc.
Instead of letting this hdi-shared instance be created automatically during deployment (which will pick the HANA cloud instance on the same account or one shared through instance sharing from another account) it is possible to create this hdi service instance manually and connect to a HANA DB anywhere else (even a different Global Account)
The issue you would be facing here however is, that the DB you are trying to access is not reachable from BTP without reaching through a destination and the cloud connector.
I am not sure, if it is possible to somehow reference a destination from the key.
Alternatively, it could be an option to:
- leave the CAP app running as it does at the moment and build a proxy (CAP) app on BTP that uses the onPrem CAP app as an external service
- build a proxy app that forwards jdbc traffic through destination and cloud connector to the backend and configure this as a jdbc endpoint (just an idea, haven't tried this)
- deploy a HANA Cloud database and federate data access e.g. through SDA towards the onPrem DB
Thanks
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gregorw
I did an experiment today with this topic.
I have a DEV and QA landscape of HDB , with XSA installed. And I have a capm project .
and it did. DEV DB sql port was reachable from QA and it all worked well. So , takeaway is , this works but with obvious workarounds.
Latency : My DEV server is in Dubai and QA is in Germany . I could notice considerable latency ( perhaps 200% ) in communication . I would try the same with BTP CF and On premise database ( this must work logically )
cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.