aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes SCBCD Mock Questions, batch #11  (11?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "SCBCD Mock Questions, batch #11  (11?)" Watch "SCBCD Mock Questions, batch #11  (11?)" New topic
Author

SCBCD Mock Questions, batch #11 (11?)

Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8883
    
    5
More ducks!
Can anyone guess why this one is batch #11 ? What happened to batches 4 - 10 ?
Disclaimer:
See the disclaimers for batches 2 and 3.

#1 Which two are true about container managed transactions in EJB 2.0? (Choose all that apply.)
a). Differentiating between overloaded methods is possible in the bean's deployment descriptor.
b). A transactional attribute must be individually declared in the method-name tag, for every business method in the bean class.
c). The container will interpose only on method invocations with container-managed transaction demarcation.
d). If an 'onMessage' method returns before committing a transaction the container will throw an exception.
e). A message-driven bean with CMT demarcation must not invoke the EJBContext.getUserTransaction method.

#2 When a business method in an entity bean calls the getRollbackOnly method, which transaction attribute settings will cause the container to throw an exception? (Choose all that apply.)
a). NotSupported
b). Required
c). Supports
d). RequiresNew
e). Mandatory
f). Never

#3 When a session bean has container-managed demarcation value of 'Supports', which two methods run in an unspecified transaction context? (Choose two.)
a). ejbActivate
b). getRollbackOnly
c). getUserTransaction
d). ejbRemove
e). afterBegin
f). afterCompletion
Have Fun !


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

My answers:
1)a,e
2)a,c,f
3)a,d


Groovy
Andrew Perepelytsya
Ranch Hand

Joined: Aug 21, 2002
Posts: 93
Concerning the #11 thing.
I think it's 4 in a system with a base of 3 (can't remember the name for such systems in either language ). But I know there were serious research activities somewhere in 50-60s in parallel with binary systems. Though the former were much more perspective, the implementation suffered at the time, and we ended up with having binary computers today.
As for the questions, I have some questions/comments, which I would like to formulate and provide the arguments. But a bit later
sh yh
Greenhorn

Joined: Aug 14, 2002
Posts: 21
Originally posted by Bert Bates:
More ducks!
#3 When a session bean has container-managed demarcation value of 'Supports', which two methods run in an unspecified transaction context? (Choose two.)
a). ejbActivate
b). getRollbackOnly
c). getUserTransaction
d). ejbRemove
e). afterBegin
f). afterCompletion


This question is quite confusing, because it will always run in an unspecified transaction context with 'Supports' attribute when the client calls without a transaction.
sh yh
Greenhorn

Joined: Aug 14, 2002
Posts: 21
Originally posted by Bert Bates:
More ducks!
Can anyone guess why this one is batch #11 ? What happened to batches 4 - 10 ?

They match with objectives.
Thank you Bert for your kind considerations.
 
 
subject: SCBCD Mock Questions, batch #11 (11?)