Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EntityManager.joinTransaction() only for application-managed EntityManagers?

 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EntityManager.joinTransaction()

Is this valid for application-managed entity managers only?
Can we use it with the container-managed entity managers too?
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Page 47, the very bottom:
The methods close, isOpen, joinTransaction, and getTransaction are used to manage
application-managed entity managers and their lifecycle.


Raf
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Raf

I think you can kindly answer my this question too.

Treimin
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Done ;-) Hope the answers make sense...

Cheers.
 
Chandrashekhar Raiphale
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may also help you.

Page no 46 of "ejb-3_0-fr-spec-persistence.pdf" Entity Operaions


/**
* Indicate to the EntityManager that a JTA transaction is
* active. This method should be called on a JTA application
* managed EntityManager that was created outside the scope
* of the active transaction to associate it with the current
* JTA transaction.
* @throws TransactionRequiredException if there is
* no transaction.
*/
public void joinTransaction();
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic