• 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

local & remote doubt

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. For this drag and drop type question, you can use each element only once.
Which interface should be matched with which fact,
so that all four matches are correct?

1. remote component a. does not have a getHomeHandle() method
2. remote home b. extends 'javax.ejb.EJBObject'
3. local component c. methods must NOT throw 'java.rmi.RemoteException'
4. local home d. can be used to retrieve an EJBObject reference.


ans given :
1 - b
2 - d
3 - a
4 - c

My answer :
1 -b
2 -d
3- c
4 - a

Can anyone tell me know what is the wrong in my answer.
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes, you are right.
 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think both are correct b/c:

3-a :correct b/c local component does not have a getHomeHandle().
4-c :Throwing RemoteException is not needed for local home or local component.

Your answer is also correct
 
reply
    Bookmark Topic Watch Topic
  • New Topic