File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCBCD Mock Questions, batch #11 (11?)

 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • 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 !
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My answers:
1)a,e
2)a,c,f
3)a,d
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
sh yh
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic