Forums Register Login

questions about BMT beans

+Pie Number of slices to send: Send
Hi All,
I had a some questions regarding BMT.
1. How is the container managing the lifetime of the UserTransaction in the Context object? When is it created and when is it destroyed?
2. Does the UserTransaction propagate automatically when a BMT bean calls another BMT bean? And does it propagate when a BMT bean calls a CMT, and vice versa?
3. How can one specify the Transaction Attibute in the ejb-jar-xml for a BMT bean? Do we need to specify "Require" or something?
-David
+Pie Number of slices to send: Send
 

I had a some questions regarding BMT.
1. How is the container managing the lifetime of the UserTransaction in the Context object? When is it created and when is it destroyed?
2. Does the UserTransaction propagate automatically when a BMT bean calls another BMT bean? And does it propagate when a BMT bean calls a CMT, and vice versa?
3. How can one specify the Transaction Attibute in the ejb-jar-xml for a BMT bean? Do we need to specify "Require" or something?


1. I guess you mean ejb container does not manager the life time of UserTransaction. The Transaction service is offered by server. Container simply use it.
2. For a BMT to BMT call, the first BMT is considered as a client the second BMT, by spec, the The container suspend any trasaction associated with the client. So the transactin is not propagated.
3. Transacton attribute is for CMT only. BMT control the transaction by code not declaration.
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 929 times.
Similar Threads
a mock question about transcation
When to use UserTransaction's setRollbackOnly() and UserTransaction's rollback()
Mock Exam Question
BMT Mock question
Bean managed transaction.. why this?>
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:00:03.