Originally posted by youngwoo seo: hi guys. i got an question about the transaction-related with DD. the question is :
Which of the following deployment descriptor element specifies whether the enterprise bean is associated with container-managed or bean-managed transaction demarcation (select the best answer):
.. b. <transaction-type> .. ..
the answer is b. but the explanation is that :
B) is correct. Note: This element is used only in session and message-driven beans because it is mandatory for entity beans to use container-managed transaction demarcation.
from this explanation, i am so complicated. Does this explanation means that the <transaction-type> tags is used only in session, message-driven, and entity bean? or what else?
i am so nervous about the exam. i have exam on this sunday...but there are too many things to memorize and understand the complicate principal about EJB...
Thx in advanced
It means what it says, As you must already know that Entity bean always have Container managed transactions. So <transaction-type> is Container for entity bean by default, so there is no need to put that in the DD.
I hope this helps.
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades: