<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 8/18/16 1:15 AM, Stian Thorgersen
wrote:<br>
</div>
<blockquote
cite="mid:CAJgngAcyW6e35w=4MWe_QOfMqiMLSRBfDaG4-mO8SG8TTjnbcg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 8 August 2016 at 23:51, Bill Burke
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:bburke@redhat.com" target="_blank">bburke@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Ok,<br>
<br>
New provider deployer exists in master. You can package
components in<br>
any type of deployment. i.e. within a EAR or WAR. Hot
deploy works as<br>
well. The deployers/ directory and deployment-scanner
subsystem is now<br>
back in the server. Also added JTA transactions. So, now
when a<br>
KeycloakSession is created a new JTA transaction is
associated with the<br>
KeycloakTransactionManager. If there was an existing JTA
transactionn,<br>
that transaction is suspended and resumed after the
keycloak session<br>
completes. JTA TransactionManager lookup has an SPI now
which you can<br>
enable/disable in keycloaks-server.json. If no
transaciton manager<br>
exists i.e. within the testsuite, JTA is not used at all.<br>
</blockquote>
<div><br>
</div>
<div>Why is the existing transaction suspended? Should it
not just join the existing transaction?</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
Let me clear this up, the current JTA transction is suspended if and
only if KeycloakTransactionManager.begin() is invoked. All our
current usages of KeycloakTransactionManager assume that a brand new
"transaction" is started when used. Eventually we can add a new
method that assumes the Keycloak Session is being used with a JTA
transaction. In this case, KeycloakTransactionManager would be
registered with an existing JTA transaction.<br>
<br>
Bill<br>
<br>
</body>
</html>