• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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 ]
 
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic