Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HF EJB book page 320 & 325

 
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
 
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
 
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.
 
    Bookmark Topic Watch Topic
  • New Topic