• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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.
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic