• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question from ejbcertificate.com

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following methods must the entity bean provider implement in the abstract entity bean class? [Check all correct answers]


1 The entity bean provider must provide a public constructor without arguments.
2 The entity bean provider must provide at least one implementation for the ejbCreate() method.
3 The entity bean provider must provide the implementation of the ejbFind() method(s).
4 The entity bean provider must provide the implementation of the ejbHome() method(s).
5 The entity bean provider must provide at least one ejbSelect() method.

The aorrect answer as per them is 1 + 4.

I feel only 4 should be the answer.
EJB provider need not provide constructor with no args. Since, if we dont provide the constructor at all with java rules default no arg constructor is provided.

Please comment. Your inputs on this are appreciated.
Thanks,
Gemini
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gemini Moses:


1 The entity bean provider must provide a public constructor without arguments.



Yea. It would be more correct, if the answer were "The entity bean provider must not provide any other constructor other than a public non argument one".
[ March 10, 2005: Message edited by: -Sanju Thomas- ]
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THanks Sanju for your reply.

Hope we wont get some such questions/ answers in real exam!!

Thanks once again!

Gemini
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can entity bean class be abstract? What would be the purpose for that?
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Entity Bean class MUSt be declared as abstract by the bean provider.

Container implements abstrcat getter and setter methods from the bean class at delpoy time by using information provided by bean provider and assemblor in deployment descriptor.

Hope it helps!

Gemini
 
Deep Chand
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oops...I'm sorry...such a stupid question to ask...i forgot @ it...
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic