• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mock exam question

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic