• 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
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
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
 
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic