File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question about book 'EJB in Action' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question about book Watch "Question about book New topic

Question about book 'EJB in Action'

Tom Kowalski
Ranch Hand

Joined: Feb 17, 2009
Posts: 72
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?

Thanks for the replies and suggestions.

Krzysztof Koziol
Ranch Hand

Joined: Nov 19, 2006
Posts: 133

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

Tom Kowalski
Ranch Hand

Joined: Feb 17, 2009
Posts: 72
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.
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918


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.


ryan sukale
Ranch Hand

Joined: Aug 11, 2007
Posts: 53
Hi Tomasz,

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.

Ryan Sukale

SCJP 5.0, SCWCD 5.0, SCBCD 5.0
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10031

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!
Sathees Tharmarajah

Joined: Aug 09, 2009
Posts: 20
HI Tomasz,

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

Good Luck
Ross Crockett
Ranch Hand

Joined: Aug 25, 2009
Posts: 30
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

Hope it helps your sanity!
Chandrashekhar Kotekar

Joined: Aug 17, 2009
Posts: 14

I have faced same problem that you are facing. I was able to run "Hello world" program using this tutorial.

Follow all the steps given in this tutorial and you will be able to run rest of the programs.

Tutorial tells you how to run program using command prompt, but dont worry just give it a try. Once you know what steps to follow, you will be able to run any EJB program.

I used this tutorials just two days ago and now I am able to run all the examples given in "EJB 3 in Action" book from eclipse itself.

I agree. Here's the link:
subject: Question about book 'EJB in Action'
It's not a secret anymore!