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 question

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Here is a mock exam question:

Which one of the following statements is valid for a local home interface of a session bean?

Select 1 correct option.
a It can be accessed by an entity bean running in the same JVM.
b It can be accessed only by another session bean running in the same JVM.

The Answer is (a) . So if (a) is correct then why not (b)?

Thanks

-- Ravi
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

The only way (b) can be wrong is since (b) says

It can be accessed only by another session bean running in the same JVM.

The "only by" clause makes this a wrong choice
since a local home interface of a session bean should be accessible by
local clients (session/entity) that are colocated in the same JVM as the bean.

Thanks

-- Ravi
[ February 24, 2005: Message edited by: Ravindra Janapareddy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic