Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Coffee Cram questions 3 and 5 in entity bean intro

 
Vagner Freitas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He All,

In HFE chapter 5 (Entity Bean intro):
Question: Which are ways in which a client can get a reference to an existing entity object's local (remote) component interface?
Answer D is: "Receive the reference as a parameter in a method call".
I did not understand why the answer D is true in questions 3 and 5.

Thanks in advance.
 
Joe Nguyen
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get a hold of a component interface via the following ways.
1. Invoking create(), findBy,... from the home interface.
2. Using handle (only for remote interface)
3. Parameterizing a component interface. Just like regular java program.

Bean A{
process(BeanBInterface BeanB){
BeanB.doSomeThing();
}


}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic