-
15. Re: Transaction recovery with Tomcat 9, Tomcat DBCP2 pooling, XAResources, PostgreSQL
mbabacek Apr 16, 2018 5:11 AM (in response to tomjenkinson)tomjenkinson, karm is the correct ID; I just haven't had the time to process it. I'm turning back to Narayana now. Lemme get back to this thread shortly.
-
16. Re: Transaction recovery with Tomcat 9, Tomcat DBCP2 pooling, XAResources, PostgreSQL
tomjenkinson Apr 16, 2018 12:35 PM (in response to mbabacek)Great - the PR has been updated to run with Postgres. It also closes a connection leak on the recovery connection and performs the upgrade to Tomcat 9.
The PRs to Narayana and the quickstart repo were resolved so please do let us know if there is something missing.
-
17. Re: Transaction recovery with Tomcat 9, Tomcat DBCP2 pooling, XAResources, PostgreSQL
mbabacek Apr 17, 2018 8:11 AM (in response to tomjenkinson)tomjenkinson, it works for me
I rebased my changes on top of the new master with ochaloup's, zhfeng's and yours changes and it works for me now. To the current setup in my branch:
- local H2
- PostgreSQL via Docker
- PostgreSQL/any via DBAllocator
I will add (re-add from the master)
- PostgreSQL in JBTM CI
So as it is unified under one API for the test cases.
- Then I proceed to the old task - to move DBAllocator usage of "proprietary" API elsewhere (although I would probably reopen the topic at the time we move to web-servers · GitHub)
- I will open several mostly BxMS/JWS Jiras regarding user experience questions, i.e. whether we really want to be having jboss-transaction-api_1.2_spec in /lib directory of JWS Tomcat
- One of the options I can see is to be demanding from users to have all Narayana deps packaged in their web apps, (the way we go about Apache CXF in JWS)
- The other way would be to tie particular JWS release to a particular Narayana release and to bundle Narayana libs in our JWS Tomcat
- The I proceed with other test cases, connection pool options, more database instances etc.
The clouds are lifting and I have every hope that the light of Tomcat+Narayana is breaking through!
-
18. Re: Transaction recovery with Tomcat 9, Tomcat DBCP2 pooling, XAResources, PostgreSQL
tomjenkinson Apr 17, 2018 9:08 AM (in response to mbabacek)Perfect - thanks for confirming!
-
19. Re: Transaction recovery with Tomcat 9, Tomcat DBCP2 pooling, XAResources, PostgreSQL
zhfeng Apr 17, 2018 10:58 AM (in response to mbabacek)mbabacek, for testing the connection pool options, currently we just support the maxIdle, minIdle and maxTotal. I will raise a JIRA to support all the other options with the dbcp2.