cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between XSA environment and Classic XS environment on the same host

0 Kudos

We are building an XSA app. It is a HANA (HDI), JAVA, UI5(approuter) stack on XSA. This stack populates the DB. Now we have some XS content in the standard XS stack that we want to run on the HDI DB artifacts and see the results on the ui for which we have created a separate UI5 web app. I am aware of the fact that the xs app can run inside the Node runtime. But for some reason we cannot transport the content in the XS stack to XSA stack. So considering this the only option is to establish a communication between XSA and XS environment. To be specific, the problem is in the approuter xs-app.json of this app. When you specify the "routes" section in this file, we say if the path is /a/b/c/d, then the destination should be <host>:80<instance_id> (note that it is the XS port NOT the XSA port). This does not work. Is that the expected behavior? Do we have any solution to establish such a connection between the XSA and XS environment?

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

No you can’t use the routes of the app router against an XSC service.  The XSC has its own web dispatcher. It isn’t part of the platform router of XSA. You have to essentially treat it as an external service if you want to call it.

Why were you not able to migrate it to the XSC compatibility layer of Node.js?  That’s really the solution you should be working on.

0 Kudos

Thanks a lot for this. It clarifies the doubt.

In that case I understand that I must be looking to create and use xshttpdest file for this. Is my understanding correct? I have created an SCN question for this as well. Could you please elaborate on that.

Answers (0)