This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Most of people here advice that the best book for learning EJB, as well as book for preparation for SCBCD is 'EJB in Action'. I am reading this book right now, I am on the page about 100, and it’s making me a bit angry, because all the time authors are talking about EJB, about beans and so on, but they are not giving any FULL examples which I could use. Yes, they write the classes of Beans, but even if I will rewrite them, I won`t know how to use them. So here is the question: If I will read this book a bit more, will I find FULL examples? Or should I look for other books/tutorials thanks to which I could write my first application (which use EJB) from A to Z?
I think this book is great for beginners and for people that have some knowledge of EJB.
Anyway, don't worry. As you move to the "Part 2" of this book you'll definitely see more code
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCEA/OCMJEA 5.0
Joined: Feb 17, 2009
I'm completly new in EJB. I am reading this book and it's really getting my nerves. I would like to see examples, after which I could open NetBeans rewrite them and see some results. Insted it looks like this book show how does 'brick' looks like, but it doesn`t show how to build an house from it.... . I really woudn't like to spend next 3 weeks on reading it, and then to see that although I know how it all works in theory, I do not know how to implement it in real life.
The EJB in Action is a very good book and it is the perfect overture for an enterprise symphony. You must be a little bit more patient, the EE is a very vast domain, the first 100 pages only give you a very short view over, try to practice and try to research and go on details with all the things what you don't understand form the book.
I was in the same situation, last year, right now I re-read the book and I find it very good.
I completely understand what you feel because i have gone through the same. After somehow managing to read maybe the first 10 chapters, i was exhausted because of lack of practice.
Then i came across the "Beginning EJB 3 Application Development" book. It was something that got me a head start. I strongly suggest this book if you really feel the need to write code. Though the book does not cover the concepts as deeply as they have been done in the EJB 3 In Action, i still found it as a useful supplement. So, keep both the books handy and use them in conjunction with each other.
Also,Netbeans provides tutorials that can get you started. Be certain to try them.
You may also like to read the post here where i tried to explain my preparation strategy. I hope it works out for me as well as for you.
The EJB 3 in Action will get you started with understanding the basics. Later you might pick up the EJB book from O'Reilly and part 2 of the O'Reill's book has a complete work book with lots of examples.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
check the book's home page | auther's page full code example should be available as I remember, But please don't always test with those codes. write your own example and test
After you've done that, Check out Appendix E at the back of the book. It's got instructions on how to setup and configure the app server etc.
At the beginning I too wanted to do some initial examples, but also wanted to concentrate more on code and less so on deployment. To do this I installed Glassfish and the Eclipse IDE, and with the help of a plug-in or two you can deploy ejbs in a single click. Makes it heaps easy to test little things as you read the book. Someone mentioned NetBeans too, which I'm sure you could easily substitute for Eclipse (apples and oranges).
Make sure you run the books examples eventually though as Sathish mentioned, as it will give you a bit more knowledge on how the app is packaged etc. Unless you can wait till chapter 11