• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Mock Question

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
can someone help me with this sample question ? I had posted it in the 'Product and other Certifications forum, but no one has replied so far.
Which object CANNOT be retrieved from a JNDI namespace by an Application Client?
A. EJBHome (stub)
B. EJBLocalHome
C. QueueConnectionFactory
D. TopicConnectionFactory
Thanks
Vipin
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Which object CANNOT be retrieved from a JNDI namespace by an Application Client?
A. EJBHome (stub)
B. EJBLocalHome
C. QueueConnectionFactory
D. TopicConnectionFactory


I'm not sure but I think Option A and B cannot be retrieved.
Because the container makes the remote home interface or local home interface accessible to the client through JNDI.An objects that implement an remote home interface or local home interface are called EJBHome and EJBLocalHome respectively.And they are provided by container and not visible to client directly.
I could be wrong if anybody knows please do me correct.
Regards,
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which object CANNOT be retrieved from a JNDI namespace by an Application Client?
A. EJBHome (stub)
B. EJBLocalHome
C. QueueConnectionFactory
D. TopicConnectionFactory
My answer
C D are definetly retrieved by JNDI
B is also retrieved by JNDI but its more like Naming directory lookup rather than JNDI
EJB HOME is also retrieved by JNDI
i would say none of the above
please correct
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say B because EJBLocalHome is not retrieved by an application client.
 
Vipin Mohan
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Why can't an application client get a reference to the EJBLocalHome ?
Can you please clarify ?
Thanks
Vipin
[ November 22, 2003: Message edited by: Vipin Mohan ]
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vipin,
Because a client application is not local ? OK, it's just a guess, I'm not ready to pass yet !
Best,
Phil.
PS: Hope we'll get soon a definitive answer to this mock question !
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct me if I'm wrong, but local interfaces don't make use of RMI. As a result all calls to local interfaces must take place within the save JVM. So application clients can't call them. I imagine it wouldn't be allowed to get a reference to a local interface on the JNDI tree either?
Does this sound right?
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java applications can't serve as local clients.
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic