cancel
Showing results for 
Search instead for 
Did you mean: 

How to develop XSA Java module in Multi Target Application?

Former Member
0 Kudos

Hello, Is there any detailed sample project like the "Tinyworld" to demonstrate how to use Java module instead of node.js module in a multi-target application for XSA?

There are still many points not clear no me. For example, the document mentions oData can be defined in Java module. But should we still just write something like .xsodata file or we do need to put some Java code? And how to define the database connection? Should we do it by "Binding datasource" after deployment or define db provider in mta.yaml? We must deploy Java module alone or can we bundle it together with other module? And can we develop Java module in WebIDE?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

No you can not yet develop/build/run a Java module from the SAP Web IDE for SAP HANA.  That is a feature which is planned for the near future.

So today you can develop an MTA with mixed component; and develop the parts that are non-Java in the Web IDE for SAP HANA.  However as soon as you want to build/run the complete mta with the Java modules you have to move the entire MTA development out to the command line.

There is no xsodata for Java module.  You can instead use the Apache Olingo library for Java OData services.  Once we have the Java module in the SAP Web IDE for SAP HANA, we also plan to have a wizard that generates much of the OData service for you.

There is a Java tutorial in the online help:

The SAP HANA XS Advanced Java Run Time - Introduction to Application Development and Deployment (XS ...