• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SCBCD Mock Questions, batch #11 (11?)

 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My answers:
1)a,e
2)a,c,f
3)a,d
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
reply
    Bookmark Topic Watch Topic
  • New Topic