Create Java Web Application using WEB Module and EJB in NWDS
3 min readMay 7, 2020
Create EJB Module
- Under your Software Component create new development component “EJB Module”
2. In the project create a new package and session bean for the example return result.
3. Declare getCustomerFullName() method and implement.
Deploy EJB Module to SAP Netweaver
- Create EAR component
2. Test EJB on SAP Netweaver AS JAVA
The result should return the string “Thanapuet Kaewmanee” as per your coding.
Call EJB Module by font-ent (WEB Module)
- Create Web Module
2. Add dependency ejb_demo to web_demo
3. Create customerInfo instant it’s a reference to CustomerInfoLocal interface and try to call getCustomerFullName() method.
Deploy WEB Module and Run
- Add the web_demo component to the ear_demo component.
2. Deploy EAR and try to run a web module from the browser.
You may return the result by JSON or another format.