[Starter] EJB Session Bean based Web Server and Servlet client

EJB Session Bean based Web Server and Servlet client in Netbeans

1. Create a Class Library project which will hold your Remote EJB interfaces

1

2. Create new interface called WsHello

3. Create a new Project of type EJB Module
3
4. Create a new class in the EJB Module this class will implement your interface defined in the Class Library you defined earlier

5. Create a Web Application and a new Servlet in it. Here you add the annotation @EJB to autowire your interface.

6. Add the Class Library as a dependency in your web application project. Now all errors should solve by themselves.

2

Leave a Reply

Your email address will not be published. Required fields are marked *