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

mock exam - session beans

 
Rajesh Srivastava
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone

Following is a question from JPilot test 1.0


Which are true about session beans?

Select all 3 correct Choices.

1. A client can pass a remote home object reference to another application.
2. The javax.ejb.EJBMetaData interface is intended to allow application assembly tools to discover information about the session bean, and to allow loose client/server binding and client-side scripting
3. The javax.ejb.EJBLocalHome interface defines the method create() which returns javax.ejb.EJBLocalObject.
4. The javax.ejb.EJBLocalHome interface defines the method remove(Object primaryKey) which returns null.

The answers include 1,2,3

But I think answer 3 is wrong because although the create() method must be given
by the bean provider in the Home interface it is not defined in interface
javax.ejb.EJBLocalHome

Is this correct?
 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rajesh Srivastava:
3. The javax.ejb.EJBLocalHome interface defines the method create() which returns javax.ejb.EJBLocalObject.


Originally posted by Rajesh Srivastava:

But I think answer 3 is wrong because although the create() method must be given
by the bean provider in the Home interface it is not defined in interface
javax.ejb.EJBLocalHome

Is this correct?


It would be better if it was "the bean provider�s home interfece wich extends javax.ejb.EJBLocalHome interface defines the method create() which returns javax.ejb.EJBLocalObject."
 
Severin Stoeckli
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, #3 is definitely wrong

Severin
 
Kshitij Ktambe
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Severin St�ckli:
yes, #3 is definitely wrong

Severin


100 % agreed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic