Java Reference
In-Depth Information
Chapter 22
Building an EJB
In this chapter we write a very simple EJB and compile it.
22.1
W HAT Y OU W ILL L EARN
• 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 on the topic's Web site at
http://www.javalinuxbook.com/ . We will only use code excerpts in this
chapter.
22.2
EJB S :Y OU D ON ' T K NOW B EANS ?
Enough theory about EJBs and naming services and the like. It's time to put
together an actual EJB so you can see one run. First we need to write our EJB
493
Search WWH ::




Custom Search