<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Allen Day wrote:
<blockquote
 cite="mid:CBA805E5CE1FE84EB77EF635D22CC41462999A54@MBX03.ldschurch.org"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Cambria;
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:2017269674;
        mso-list-type:hybrid;
        mso-list-template-ids:-1732900356 1187802318 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Kris,<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Thanks
for your reply to my post.</span><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"
 lang="EN">WebSphere Application Server does not expose the
javax.transaction.TransactionManager interface to applications or
application
frameworks deployed into WebSphere Application Server.<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><a
 moz-do-not-send="true"
 href="http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html">http://www.ibm.com/developerworks/websphere/techjournal/0609_alcott/0609_alcott.html</a><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Specifically
we&#8217;ve come to find that we cannot use the TransactionManager to:<o:p></o:p></span></p>
  <p class="MsoListParagraph" style="text-indent: -0.25in;"><!--[if !supportLists]--><span
 style="font-family: Symbol; color: rgb(31, 73, 125);"><span style="">&middot;<span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></span></span><!--[endif]--><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Suspend
Transactions<o:p></o:p></span></p>
  <p class="MsoListParagraph" style="text-indent: -0.25in;"><!--[if !supportLists]--><span
 style="font-family: Symbol; color: rgb(31, 73, 125);"><span style="">&middot;<span
 style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  </span></span></span><!--[endif]--><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Register
Transaction Synchronizations<o:p></o:p></span></p>
  <p class="MsoListParagraph"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Looking
at the source code you referenced it appears the TransactionManager
interface
is only being used to register a synchronization.&nbsp; Is there any other
code
you&#8217;re aware of that uses the </span><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">EnvironmentName.TRANSACTION_MANAGER?&nbsp;
  </span></p>
  </div>
</blockquote>
No it's only used for that synchronisation to drive the generation of
the byte[] for change comparison.<br>
<blockquote
 cite="mid:CBA805E5CE1FE84EB77EF635D22CC41462999A54@MBX03.ldschurch.org"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">If
not this is good because
Websphere 7 supports JTA 1.1 which supports the
TransactionSynchronizationRegistry.
&nbsp;Is it possible for us to provide an alternative implementation of the
SingleSessionCommandService?&nbsp; We would provide an implementation that
uses
the TransactionSynchronizationRegistry instead of TransactionManager.&nbsp; </span></p>
  </div>
</blockquote>
This sounds reasonable, maybe we can make the sync callback pluggable.<br>
<blockquote
 cite="mid:CBA805E5CE1FE84EB77EF635D22CC41462999A54@MBX03.ldschurch.org"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">If
you could point us in the right direction there that would be great.&nbsp;
Otherwise perhaps we could just provide a dummy TransactionManager
implementation that delegates to the
TransactionSynchronizationRegistry?&nbsp;
What do you think?</span></p>
  </div>
</blockquote>
Yes i'd look at trying to build an interface that can be set as a
strategy for callback handling.<br>
<br>
Mark<br>
<blockquote
 cite="mid:CBA805E5CE1FE84EB77EF635D22CC41462999A54@MBX03.ldschurch.org"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);">Allen<o:p></o:p></span></p>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
Mark Proctor
[<a class="moz-txt-link-freetext" href="mailto:mproctor@codehaus.org">mailto:mproctor@codehaus.org</a>] <br>
  <b>Sent:</b> Wednesday, October 28, 2009 11:12 PM<br>
  <b>To:</b> Rules Users List<br>
  <b>Cc:</b> Allen Day<br>
  <b>Subject:</b> Re: [rules-users] JTA question<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal">Kris Verlaenen wrote: <o:p></o:p></p>
  <pre>Allen,<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>We selected JPA and JTA because they appear to be the standards for<o:p></o:p></pre>
  <pre>persistence and transaction currently.&nbsp; When you say incompatible, do<o:p></o:p></pre>
  <pre>you mean that the WebSphere transaction manager isn't JTA compliant,<o:p></o:p></pre>
  <pre>that we are using JTA features that WebSphere does not support, or that<o:p></o:p></pre>
  <pre>it is a custom transaction solution?<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>Note that persistence and transactions is defined as an orthogonal<o:p></o:p></pre>
  <pre>concern, meaning you can easily replace it by another implementation<o:p></o:p></pre>
  <pre>without having to redefine everything.&nbsp; I'm more than happy to work with<o:p></o:p></pre>
  <pre>you on making this work on WebSphere.&nbsp; If you want to take a look at our<o:p></o:p></pre>
  <pre>transaction implementation, take a look at SingleSessionCommandService:<o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-persistence-jpa/src/main/java/org/drools/persistence/session/SingleSessionCommandService.java">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-persistence-jpa/src/main/java/org/drools/persistence/session/SingleSessionCommandService.java</a><o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>As you can see, there are only a few calls to the transaction manager<o:p></o:p></pre>
  <pre>before and after the execution of the commands (supporting both<o:p></o:p></pre>
  <pre>user-defined or default transactions).&nbsp; Shouldn't be too difficult to<o:p></o:p></pre>
  <pre>either replace that with another transaction implementation, or make the<o:p></o:p></pre>
  <pre>solution more generic to support multiple ones altogether.<o:p></o:p></pre>
  <pre>&nbsp; <o:p></o:p></pre>
  <p class="MsoNormal">I can concur that the plan was always to support
other
transaction models, but to target JTA first as it's an established
standard.
Beyond that we wanted to make sure our direction was user driven.<br>
  <br>
Mark<br>
  <br>
  <o:p></o:p></p>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>Kris<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>Quoting Allen Day <a moz-do-not-send="true"
 href="mailto:DayAK@ldschurch.org">&lt;DayAK@ldschurch.org&gt;</a>:<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>&nbsp; <o:p></o:p></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
    <pre>I am new to this list, so I apologize if this question has been asked<o:p></o:p></pre>
    <pre>before.<o:p></o:p></pre>
    <pre><o:p>&nbsp;</o:p></pre>
    <pre>It appears that drools-flow requires JTA in order to use JPA.&nbsp; Is<o:p></o:p></pre>
    <pre>anybody using drools-flow running on WebSphere, because WebSphere<o:p></o:p></pre>
    <pre>uses its' own transaction manager (and the two don't seem<o:p></o:p></pre>
    <pre>compatible).&nbsp; Has anybody looked at the feature request to provide<o:p></o:p></pre>
    <pre>support for resource local transactions -<o:p></o:p></pre>
    <pre><a moz-do-not-send="true"
 href="https://jira.jboss.org/jira/browse/JBRULES-2289">https://jira.jboss.org/jira/browse/JBRULES-2289</a><o:p></o:p></pre>
    <pre><o:p>&nbsp;</o:p></pre>
    <pre>We need to decide soon between Drools Flow &amp; JBPM, and this issue<o:p></o:p></pre>
    <pre>could swing in JBPM's favor.<o:p></o:p></pre>
    <pre><o:p>&nbsp;</o:p></pre>
    <pre>Thanks,<o:p></o:p></pre>
    <pre>&nbsp; Allen&nbsp; <span style="color: rgb(31, 73, 125);"><o:p></o:p></span></pre>
  </blockquote>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>Disclaimer: <a moz-do-not-send="true"
 href="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</a><o:p></o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>rules-users mailing list<o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>&nbsp; <o:p></o:p></pre>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  </div>
  <div>
  <p class="MsoNormal"><span
 style="font-family: '&quot;Helvetica&quot;,&quot;Tahoma&quot;,&quot;Arial&quot;,&quot;sans-serif&quot;';"><font
 color="#666666"><br>
  <br>
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.</font></span><o:p></o:p></p>
  <font color="#666666"><br>
  </font></div>
  <pre wrap=""><font color="#666666">
</font><hr size="4" width="90%"><font color="#666666">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</font></pre>
</blockquote>
<br>
</body>
</html>