Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SCBCD exam question..problem

843830Nov 7 2008 — edited Nov 7 2008
Hi all,
I'm learning to SCBCD 5.0 cert. Now I'm doing some example questions. And I have a problem with it. I know what is the correct answer.., but I'd like to understand..
why the rest is incorrect. If someone could explain that to me.., that would be great. (ex. Answer c - Incorrect because............)

Question:
A developer writes a stateless session bean with one local business interface and with container-managed transactions. All business methods have transaction attribute REQUIRED. The bean has an injected field sessionCtx of the type SessionContext. Which two operations are allowed in a business method of the bean ? (choose two):
a) sessionCtx.getEJBObject
b) sessionCtx.setRollbackOnly
c) sessionCtx.getMessageContext
d) sessionCtx.getBusinessObject
e) sessionCtx.getEJBLocalObject

Thanks a lot. (Please don't give me correct answer.., I know this one.., but explanation.., why A is incorrect..., ans so on)
Regards,
Pawel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2008
Added on Nov 7 2008
1 comment
100 views