• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Question

 
Vipin Mohan
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
 
Nauman Khan
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,
 
Steve Agarwal
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
 
Philippe Maquet
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 !
 
Marcdv
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?
 
Amer Khan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java applications can't serve as local clients.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic