Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Documentation for eclipselink.transaction.join-existing property?(Can somebody provide a more in-depth description on the function of the eclipselink.transaction.join-existing property?)
Documentation for eclipselink.transaction.join-existing property? [message #1748783] Mon, 28 November 2016 15:23 Go to next message
Christian Asselmeyer is currently offline Christian AsselmeyerFriend
Messages: 1
Registered: November 2016
Junior Member
Could somebody provide a more in-depth description on the function of the eclipselink.transaction.join-existing property? The documentation says that it is used to "force the persistence context to read through the JTA-managed ("write") connection in case there is an active transaction". The property's usage description then states that "objects read during transaction will not be placed into the shared cache unless they have been updated" if the proerty is set to true.

That leaves me a little at loss as those descriptions seem a bit unrelated to me. Can somebody elaborate on the property's function and when to use it?
Re: Documentation for eclipselink.transaction.join-existing property? [message #1749101 is a reply to message #1748783] Thu, 01 December 2016 19:42 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1275
Registered: July 2009
Senior Member
Use it when you have an active JTA transaction that the EntityManager is not appart of but you want it to join. For instance, you obtain an extended EM and later on start a JTA transaction, and now want the EM to participate in this transaction.

The docs are correct in they are describing that reads will then all go through this transaction, and only get merged into the shared cache when the transaction completes.
Previous Topic:ValidationException Isolated Data is not currently supported within a Client
Next Topic:right way to maintain bi-directional relationships
Goto Forum:
  


Current Time: Wed Dec 13 19:16:20 GMT 2017

Powered by FUDForum. Page generated in 0.01709 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software