Skip to main content



      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 10:23 Go to next message
Eclipse UserFriend
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 14:42 Go to previous message
Eclipse UserFriend
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:EclipseLink can't create foreign key constraints
Next Topic:Correct usage of Java EntityManager
Goto Forum:
  


Current Time: Thu Jul 17 06:25:34 EDT 2025

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

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

Back to the top