Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB In Action : learning progression  RSS feed

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the sample chapter, I read :
Get ready for a whirlwind tour of the entire EJB 3 API that shows just how easy the code really is
It makes me wonder how each chapter is built. The first chapter is nicely written, but what about chapters with code ?
Is a chapter full of API, methods after methods ? Or is it logically written, using the ActionBazaar sample andtaking into consideration the reader's progression ?
I personally don't like books full of unnecessary code (which usually contain lots of coding typos !).
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 2 is deliberately written at a rapid pace. In fact, it's the most fast-paced chapter in the entire book! The context of the sentence you qouted states as much in the chapter intro.

It's really a "flyover" through the entire EJB 3 API, designed for overview only. As the intro states, you're not really expected to "learn" anything out of it, just get a feel for the different parts of EJB 3 and how they look like. The idea was to give the reader a taste of EJB as a whole instead of making her wait for all the chapters to get a complete picture.

As you might guess by looking at the table of contents for each chapter, the rest of chapters are more like Chapter 1 and are slow, incremental ambles driven by examples in ActionBazaar.

So no, we definetly do not mechanically rehash the spec annotation by annotaion. Rather, we cover topics as a developer would encounter them in solving a real world problem, in logical sequence.

As to the quantity of code, in general a major topic (such as stateless session beans) is handled in this sequence:

1. A probelm in ActionBazaar is presented.
2. We outline how this problem can be solved using an SLSB.
3. We show the SLSB and its output (where applicable).
4. We go through the SLSB code in a progression that is sensible for the reader, such as explaining the coding rules for SLSB, the SLSB life-cycle, the EJB class, the EJB interfaces, the @Stateless annotation, the @Remote annotation, the @Local annotation, the life-cycle annotations, and so on.
5. When we talk about each annotation, we describe it's features in detail (the code example is deliberately formed to cover the features of the relatively targeted topic we are covering). Instead of creating an entirely new code examples, we show snippets do demostrate how the initial example code will vary for a given feature variation.

Is this more like what you would expect?

Reza
[ March 15, 2007: Message edited by: Reza Rahman ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give the reader a taste of EJB as a whole instead of makiong him/her wait for all the chapters to get a complete picture.

That's a good idea indeed, if it's not too heavy

we definetly do not mechanically rehash the spec annotation by annotaion. Rather, we cover topics as a developer would encounter them in solving a real world problem, in logical sequence.

A reader-friendly book. I'm not expecting a copy/paste of the specification either

Hope this makes sense.

It sure does. Thank you very much.
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The other goal for Chapter 2 is show whether different types of EJB fit in an application architecture.

We keep the examples to bare minimum in Chapter 2 so I think it would be an easy read!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!