• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Details of Application Managed EM

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,
can any body please describe in details the relation between EntityManager , PersistenceContext and Transactions on Application Managed EntityManager Env. , and why i can't have 2 different transactions created by the same entitymanager , and does each entitymanager uses only one connection to the DB , i can't find any documents regarding that , Thanks in advance
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it can be a long discussion, so why not just post a link to a Hibernate wiki page that explains Sessions and Transactions, since a Session is the same as an EntityManager the concepts are the same, at least (98.95% of it)

http://www.hibernate.org/42.html

Mark
 
Mohammad Jaber
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply , iam not Hibernate Expert but it seems that single hibernate session allows me to create more than one transaction , the thing that is not valid for JPA , why is this behaviour on JPA , any other hints or description !!!
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Session you cannot create nested transactions.

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic