Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification
SCBCD Practice Test
20 Free SCBCD Practice Questions

Answer 20

Correct answer: b & c

Explanation:

Choice A is incorrect, as creating new session beans is clearly under the responsibility of the (remote or local) home interface.

Choice B is correct. The component interface provides a method called remove() that allows client to remove the associated session bean.

Choice C is correct, as the local and remote component interfaces provide a method called getEJBLocalHome(), respectively getEJBHome(), that returns the local, respectively remote, home interface of the session bean.

Choice D is incorrect because only the remote component interface provides the ability to get a handle for later use.

Choice E is incorrect since session beans do not make their identity available to clients. As a result, when the method getPrimaryKey() is invoked on the local, respectively remote, component interface, an javax.ejb.EJBException, respectively a java.rmi.RemoteException, will be thrown to the client.

Please refer to section 6.5 of the EJB 2.0 specification for further details.

 

Test Objective:

Client View of a Session Bean

Next page > End

Explore Computer Certification

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Computer Certification

  1. Home
  2. Computing & Technology
  3. Computer Certification

©2009 About.com, a part of The New York Times Company.

All rights reserved.