This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
When I read HFEJB book, it only throws exception in Home interface but not in the bean class for create() method. I download the example code from the website of HFEJB. In that CustomerBean code, I saw it declares throw CreateException in ejbCreate() method. I just confused about this. Is this needed or not?? Cuz when I deploy it without put that exception in ejbCreate(), it failed. With it, I can deploy it without any problem. Any one has experience on this? Thanks.
Throwing CreateException in the create() methods of the home interface is mandatory for both Session and Entity beans. Throwing CreateException is also mandatory for the corresponding ejbCreate()methods of the entity beans, but optional for Session beans. Usually we declare CreateException at both the places for all beans. There are many people who have read/reviewed Kathy's book in the SCBCD forum. I am sure you would get more answers there for ur specific question.