• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

a mock question

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Identify all correct requirements for a CMP entity bean class? [Check all correct answers]


1 The class must be defined as coderanch.
2 The class must define a public constructor that takes no arguments.
3 The class must not be defined as abstract.
4 The class must define the finalize() method.
5 The class must implement, directly or indirectly, the javax.ejb.EntityBean interface.

the anwser is 1,2,5
I don't know why 3 is wrong,because must implement the get and set accessor methods of the bean's abstract persistence schema as abstract methods
 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
3 says "MUST NOT be " defined abstract so it is wrong
If it says must be abstract then you can pick it

kay
SCWCBD
SCBCD
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
CMT managed entity beans must be declared as public and abstract. So answer 3 is wrong.

bhilla
 
bhilla ratna
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I mean CMP bean.

bhilla
 
Acetylsalicylic acid is aspirin. This could be handy too:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic