• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Part I Mock on EJB, RMI

 
Sonal Ray
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q1. Which one of the following is a feature NOT provided by EJB that provides scalability ?

a. The ability to add additional EJB containers

IMHO It provides Horizontal scalability. I hope it is supported by EJB

b. The ability to invoke object methods remotely

IMHO Its okay
c. The ability to distribute responsibilities in a multi-tier environment

???
d. The ability to pool instances of Enterprise Java Beans

IMHO Supported

e. The ability to enforce the ACID properties of concurrent transactions

IMHO ACID is supported by EJB Tx



Q2. If an RMI parameter implements java.rmi.Remote, how is it passed "on-the-wire?"
Choice 1 It can never be passed.
Choice 2 It is passed by value.
Choice 3 It cannot be passed because it implements java.rmi.Remote.
Choice 4 It cannot be passed unless it ALSO implements
java.io.Serializable.
Choice 5 It is passed by reference.

My Choice Choice 2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic