13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 22Building an EJBIn this chapter we write a very simple EJB and compile it.22.1WHAT YOU WILL LEARN• What a simple EJB example looks like.• What are the several pieces that you need to make an EJB.• How to compile the pieces of an EJB.You’ll find the full text of our example <strong>on</strong> the book’s Web site athttp://www.javalinuxbook.com/. We will <strong>on</strong>ly use code excerpts in thischapter.22.2EJBS:YOU DON’T KNOW BEANS?Enough theory about EJBs and naming services and the like. It’s time to puttogether an actual EJB so you can see <strong>on</strong>e run. First we need to write our EJB493

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!