Red Hat Bugzilla – Bug 1099434
Verify Java Transaction API (JTA) integration
Last modified: 2017-07-03 12:48:43 EDT
Description of problem: Customer is interested in using JTA for the IDM integration. Please validate if the instructions from the wiki - https://community.jboss.org/wiki/JTAIntegrationWithGateIn - still apply to JPP 6, and if the setup works. Background information: "I have several custom subclasses of UserEventListener/UserProfileEventListener/MembershipEventListener tied to the events that trigger when performing CRUD operations on users in the PicketLink IDM included with Portal 6. These listeners then forward the user information to our legacy systems over JMS so they stay in sync. With the default setup, the JMS transaction is not tied to the IDM Hibernate transaction: messages start arriving before the user has been fully saved and the IDM transaction commits. This will be an issue when the PicketLink transaction rolls back, as the JMS messages would still be sent and processed, leading to inconsistent state across systems. Therefore, I need to enable JTA on the IDM." Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The JTA still works with latest GateIn and documentation is updated in GateIn reference guide https://docs.jboss.org/author/display/GTNPORTAL38/JTA+integration . No changes were needed in code.
Hi Jared, Some feedback to your docs. I have just notes to last section 8.4.6 : - The "<local-tx-datasource>" should be now changed to "<datasource>" . Name "<local-tx-datasource>" was for old EAP5. In EAP6 it was renamed to "<datasource>" . There are 2 occurences of this. - The first yellow part starting with "See the JBoss Transactions Programmer's Guide..." can be whole removed. There is no JBoss Transactions Programmer's guide for EAP6 AFAIK, this was just for EAP5. And you already mentioned what LROC is, so it is sufficient like you documented it without need to link any other docs IMO. - The second yellow part: I think the first sentence could be kept as it is "JBoss Transaction Service sees an attempt to enlist a second such resource as an error and terminates the transaction." I would remove the second sentence about migration (I think it came to EAP5 docs because of migrations from EAP4 to EAP5)
And yes "<driver>" element should go as child element under "<drivers>"
(In reply to mposolda from comment #4) > Hi Jared, > > Some feedback to your docs. I have just notes to last section 8.4.6 : > > - The "<local-tx-datasource>" should be now changed to "<datasource>" . Name > "<local-tx-datasource>" was for old EAP5. In EAP6 it was renamed to > "<datasource>" . There are 2 occurences of this. > > - The first yellow part starting with "See the JBoss Transactions > Programmer's Guide..." can be whole removed. There is no JBoss Transactions > Programmer's guide for EAP6 AFAIK, this was just for EAP5. And you already > mentioned what LROC is, so it is sufficient like you documented it without > need to link any other docs IMO. > > - The second yellow part: I think the first sentence could be kept as it is > "JBoss Transaction Service sees an attempt to enlist a second such resource > as an error and terminates the transaction." I would remove the second > sentence about migration (I think it came to EAP5 docs because of migrations > from EAP4 to EAP5) Thanks for the review, Marek. All changes incorporated. Ready for close-off.