Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question from ejbcertificate.com

 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • 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
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Deep Chand
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Oops...I'm sorry...such a stupid question to ask...i forgot @ it...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic