This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HF EJB book page 320 & 325 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HF EJB book page 320 & 325" Watch "HF EJB book page 320 & 325" New topic
Author

HF EJB book page 320 & 325

Nehul NN
Ranch Hand

Joined: Nov 05, 2003
Posts: 45
Hello,
Two Questions:
First from page 320.
1. How come ejbFind<method> shown in diagram because in CMP you don't call this method at all (container take care of it). Only in BMP you call it. But we are not discussing BMP any more, when you reach at this page.
Second from page 325
2. In the third way of getting reference to EJB Object will be
"Client calls to home business method that returns Collection of a reference to the bean's component interface"
As we know we can empty collection or many or single reference to EJB Object i.e. Component interface.
Hope I am making valid conclusion & asking changes if they are correct.
Thanks
Nehul
SCJP1.4
SCWCD
Philippe Maquet
Bartender

Joined: Jun 02, 2003
Posts: 1872
Hi Nehul,
First from page 320.
1. How come ejbFind<method> shown in diagram because in CMP you don't call this method at all (container take care of it). Only in BMP you call it. But we are not discussing BMP any more, when you reach at this page.

Think about this : all bean's methods in the bean lifecycle are called by the container.
2. In the third way of getting reference to EJB Object will be
"Client calls to home business method that returns Collection of a reference to the bean's component interface"
As we know we can empty collection or many or single reference to EJB Object i.e. Component interface.

Good point, but what's the question ?
Best,
Phil.
Nehul NN
Ranch Hand

Joined: Nov 05, 2003
Posts: 45
Page 320 diagram should not include ejbFind<method> all together.
Page 325 should add "it returns Collections of EJB Object" instead saying return of EJB Object directly. (it's not like create method return EJB Object).
Hope this clear my point.
SCJP1.4
SCWCD
Rahul somanath
Greenhorn

Joined: Jul 12, 2010
Posts: 19
Hi Nehul

I think home business methods cannot return EjbObject. We go for home business methods when we dont want ejbObjects.
Others please correct me if I am wrong.
 
 
subject: HF EJB book page 320 & 325
 
Similar Threads
Contradiction in Head First EJB ?
Stateless Session Bean/Entity Bean Creation...
(HFE) Home Business Methods -- Getting ref to EJB Obj
home business methods?
HFEJB Errata?