Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP 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
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

HF Final Mock Exam Q55

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When Creating an entity bean using CMP which can be accessed through the bean's remote component interface?

E Accessor methods for persistent fields - legal just not a good idea


I don't under stand answer E
Can someone explain please?

They are still talking about a Container managed persistent field right?
I thought why is it legal for a client to access these methods?
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kris Reid:
When Creating an entity bean using CMP which can be accessed through the bean's remote component interface?

E Accessor methods for persistent fields - legal just not a good idea


I don't under stand answer E
Can someone explain please?

They are still talking about a Container managed persistent field right?
I thought why is it legal for a client to access these methods?




That's correct. As per EJB 2.0 specification, clients are not allowed to access bean methods directly. Clients have to go through the bean's component interface. If a client wishes to modify a persistent field of an entity, the way to do that is by way of the component interface.
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic