• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Question

 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

3 is Incorrect. Since the question mentions Remote View.

Thanks

Ravi
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic