• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic