• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

question about DD.

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic