(note: it’s not annotated, because that’s YOUR job in the Sharpen exercise on the next page)
Sharpen your pencil
Mark each method in the CustomerBeanCMP class with one of the following four symbols:
H C EB VF
based on the reason for that method’s existence in the class. For example, the ejbCreate() method is required because there’s a matching create() in the home, so mark an H next to the ejbCreate() method.
Put a check mark next to those methods that the compiler cares about. In other words, if you left a method out and the compiler would complain with an error, then mark that method with a
Annotate the code yourself with any other details you can think of. For this exercise (but not the previous two), do as much as you can on your own, then turn back to earlier pages in this chapter and see if you can add or change anything.
Entity bean instance lifecycle
It looks bad only when you see the whole thing at once. Relax...by the end of this chapter, assuming ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.