From the course: Java EE 7: Enterprise JavaBeans (EJB)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create the ListRecords servlet

Create the ListRecords servlet

From the course: Java EE 7: Enterprise JavaBeans (EJB)

Start my 1-month free trial

Create the ListRecords servlet

- [Instructor] Okay so now we'll build all the remaining pieces to test our beans with a web portal. We'll start with list records. One thing that you could do from time to time, just to make sure that your code will compile to a successful build, you can right click on the app here, and clean and build. And it's going to check your code and then make sure that the build is successful. So it seems that everything is working properly. Perfect. So now let's go ahead and right click on our web module here, and then click on New, and then you can select Servlet right here. And what we're going to do is call this guy ListRecords. And create our brand new package that we'll call web. Then click Next, and then Finish. So the first thing we're going to do is do a right click right inside of our class. So what I'm going to do is scroll all the way down here like so, and then do right click, and then do Insert Code, and select Call Enterprise Bean. And the first thing we want to do is go inside…

Contents