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.)
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
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.