• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Management of EJB's recources?

 
Chen ZhiJiang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which two statements are true about management of an EJB’s resources? (Choose two)
A. The reference to the remote object is obtained through JNDI to improve maintainability and flexibility.
B. The reference to home object is obtained through JNDI to improve maintainability and flexibility.
C. The EJB container can manage the instance’s access to its resources because the home object acts as a
proxy.
D. The EJB container can manage the instance’s access to its resourced because the remote object acts as a
proxy.
Can you please give correct answer and give explain.
Thanks in advance.
 
meg matthews
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
B. The reference to home object is obtained through JNDI to improve maintainability and flexibility.
JNDI used to find the bean only, the result is acquiring the home interface
D. The EJB container can manage the instance�s access to its resourced because the remote object acts as a
proxy.
A proxy is a surragate for a real object and the remote interface is a surragate for the bean class.
I believe this is correct, but I was unable to find the text to support the answers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic