Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

JTA Transactions and Entities

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read the below explanation on JTA transaction from Mastering EJB3.0 written by Sriganesh,brose,silverman


JTA transaction always begins & ends externally to the JTA entity manager.
Beans and Container, in case of bean-managed and container-managed transactions, respectively,
will begin and end the JTA transactions;
they make entities a part of their active transactions by enlisting the entity manager's persistence context.
The entity manager, therefore, only participates in an already active JTA transaction; it doesn't actually begin or commit a JTA transaction on its own.
Hence, there is no mechanism to specify the transactional behaviour of the entities. Their transactional behaviour is completely dependent on the caller



I have some doubts in the above.

1. why do they mention about JTA in container-managed transaction. do they mean a distributed transaction environment ?
2. what do they mean by "transactional behaviour of the entities" in this context ?

I am totally confused with the explanation. It will be good if someone can explain me what they are trying to arrive at ?

sorry for the spelling mistakes.

- Ragav
 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic