Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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.
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic