• 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();
}


}
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!