Add External Library to EJB Module — NWDS

Thanapuet Kaewmanee
2 min readJun 9, 2020

Create an External Library component and the public.

  1. Create an “External Library” component.
create “ext_demo”

2. Go to Project Explorer/ext_demo copy your external library and paste to “libraries” folder

copy and paste your external library to ext_demo

3. The public path for another component call.

Manage Entities

Go to Component properties of ext_demo > Public Parts > right-click on api(Use on design time) and select Manage Entities do same thing in archives(Use on run time).

select your external library

4. Deploy your external library.

Add ext_demo to ear_demo for deploy

Import your external library to another module.

  1. Add dependencies to ejb_demo.
add ext_demo to ejb_demo

2. Try to create an instance object that refers to your library

Run Testing Result EJB on net weaver Java

Example Run EJB

--

--