Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF EJB book page 320 & 325

 
Nehul NN
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic