• 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

mock exam - session beans

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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."
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, #3 is definitely wrong

Severin
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Severin St�ckli:
yes, #3 is definitely wrong

Severin



100 % agreed
 
To do a great right, do a little wrong - shakepeare. twisted little ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic