Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean managed transaction.. why this?>

 
M Mistroni
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i found this question twice, .. i still cannot understand the answer..

Which two are true about bean-managed transaction demarcation?
A) A transaction used by a BMT bean MUST have been started by the bean.
B) The caller's transaction will be propagated into a BMT bean.
C) Transactions in a BMT bean do not propagate when the BMT bean calls a method on another bean.
D) A bean cannot use both CMT and BMT together.
E) BMT beans must not specify transaction attributes


Now, correct answers are D and E

but i can't undrestand why A is wrong..
if no transaction can be propagated into a bean using BMT, doesnt' that mean that every transaction the bean uses must have been started by the bean?

can anyone clarify?

thanks and regars
Marco
 
Rajan Murugan
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by M Mistroni:
hi all,
i found this question twice, .. i still cannot understand the answer..

Which two are true about bean-managed transaction demarcation?
A) A transaction used by a BMT bean MUST have been started by the bean.
B) The caller's transaction will be propagated into a BMT bean.
C) Transactions in a BMT bean do not propagate when the BMT bean calls a method on another bean.
D) A bean cannot use both CMT and BMT together.
E) BMT beans must not specify transaction attributes


Now, correct answers are D and E

but i can't undrestand why A is wrong..
if no transaction can be propagated into a bean using BMT, doesnt' that mean that every transaction the bean uses must have been started by the bean?

can anyone clarify?

thanks and regars
Marco


Can you mention the source of this question? The statements are generic context to context the answer may vary.
 
M Mistroni
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
thanks for reply..
well i downlaoded from the web few questions about SCBCD, and i found this one...no particular context..

KQ8: Which two are true about bean-managed transaction demarcation?
A) A transaction used by a BMT bean MUST have been started by the bean.
B) The caller's transaction will be propagated into a BMT bean.
C) Transactions in a BMT bean do not propagate when the BMT bean calls a method on another bean.
D) A bean cannot use both CMT and BMT together.
E) BMT beans must not specify transaction attributes.

i am sure i found the same at ejbcertificate.xom

i think something could be wrong with the MUST option A, but as far as i have seen docs, there's no way that a BMT can use an incoming transaction...

so, i m still at square 1..

any help?

regards
marco
 
Amar Sinha
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct Answers : A,D

Any comments by experts ?
 
Vijay Govind
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not an expert, but my vote is for A, D
 
Bharathi Kongara
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I'm wondering why can't E be true?! If a bean can't be CMT and BMT at the same time, how can we have transaction attributes for a BMT?

Thanks,
Bharathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic