• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question

 
Thiru Thangavelu
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the answer for this?

Which of the following operations are allowed in the afterCompletion() method of a session bean that defines a remote client view?

Choices:

A. Invoke getPrimaryKey() on the SessionContext object
B. Access another enterprise bean
C. Invoke getEJBLocalHome() on the SessionContext object
D. Invoke getEJBObject() on the SessionContext object
E. Access the java:comp/env JNDI context
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Here is tha answer:

Choices:

A. Invoke getPrimaryKey() on the SessionContext object
Incorrect: There is no primary key for session bean.
B. Access another enterprise bean
Incorrect: It is not safe to access resource manager or other beans.
C. Invoke getEJBLocalHome() on the SessionContext object
Correct
D. Invoke getEJBObject() on the SessionContext object
Correct
E. Access the java:comp/env JNDI context
Correct

Thanks

Ravi
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

3 is Incorrect. Since the question mentions Remote View.

Thanks

Ravi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic