• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Theorical questions about JPA

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,

I recently decided to keep an eye on object-relational mapping with JPA and decided to start reading the book Enterprise JavaBeans 3.0 (5th Edition)
by Bill Burke & Richard Monson-Haefel.

Im really enjoying the book and the technology but, as i had time to read only once the chapters about JPA, some doubts still remain. Would you all please help me? sorry if some of these questions have been already answered on other posts...


1 - "after a JTA transaction is finished the transaction scope persistence context is destroyed and the bean instance i no longer managed". When the JTA transaction finishes, in the end of any method?

2 - what about extend persistence context? when the transaction finishes when using this kind of persistence context? after entityManager.getTransaction.commit()?

3 - Can i use dependency injection of EntityManagerFactory and EntityManager on Tomcat with JTA used on persistence.xml? is there any relationship about de use of JTA and dependency injection of EntityManagerFactory and EntityManager ?

4 - "An entity bean cannot depend on any other framework neither be subclasses of another classs". Why should we implement java.io.Serializable?


Thanks in advance.
 
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic