• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
What's that smell? Hey, sniff this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic