aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Bean managed transaction.. why this?> 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 "Bean managed transaction.. why this?>" Watch "Bean managed transaction.. why this?>" New topic
Author

Bean managed transaction.. why this?>

M Mistroni
Ranch Hand

Joined: Oct 03, 2005
Posts: 63
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

Joined: Jun 24, 2006
Posts: 182
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.


With Regards,<br /> Rajan<br />"Java Rocks"
M Mistroni
Ranch Hand

Joined: Oct 03, 2005
Posts: 63
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

Joined: Nov 13, 2006
Posts: 5
Correct Answers : A,D

Any comments by experts ?
Vijay Govind
Greenhorn

Joined: Oct 18, 2006
Posts: 27
I am not an expert, but my vote is for A, D
Bharathi Kongara
Ranch Hand

Joined: Sep 15, 2005
Posts: 56
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bean managed transaction.. why this?>