Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HFEJB Final Exam Q-55

 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Have some confusion with the folowing Question.

Q- When Creating an entity bean using CMP, which can be accessed through the beans remote component interface?

Given answers are
business method and accessor methods of persistent fields.

Why the accessor methods for relationship fields cannot be accessed ???


Thanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CMR properties are defined using local component interfaces -- which means they're no good sent across the network, right? If you wanted, you could create another business method that wrapped up that information into a value object and then returned a collection of them.
 
Gul Khan
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah absolutely. Thanks for clearing that up.
 
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!