Skip to content

Enhancement/implement xa support for db2 database#154

Open
ignorant05 wants to merge 3 commits intoOpen-J-Proxy:mainfrom
ignorant05:enhancement/Implement-XA-Support-for-DB2-Database
Open

Enhancement/implement xa support for db2 database#154
ignorant05 wants to merge 3 commits intoOpen-J-Proxy:mainfrom
ignorant05:enhancement/Implement-XA-Support-for-DB2-Database

Conversation

@ignorant05
Copy link
Contributor

Solves #73

@rrobetti
Copy link
Contributor

rrobetti commented Dec 2, 2025

@ignorant05 DB2 integration tests should be disabled by default as per it is a proprietary database.

@rrobetti
Copy link
Contributor

rrobetti commented Dec 2, 2025

@ignorant05 DB2 integration tests should be disabled by default as per it is a proprietary database. Tests are currently failing in the Main CI workflow.

@ignorant05
Copy link
Contributor Author

@ignorant05 DB2 integration tests should be disabled by default as per it is a proprietary database.

Sorry, i forgot about that. this should be fine now.


@BeforeAll
public static void setup() {
isTestDisabled = !Boolean.parseBoolean(System.getProperty("enableMariaDBTests", "false"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ignorant05 MariaDB tests should be enabled by default and run with the main CI pipeline as per Maria DB is open source and we can pack with the jdbc driver without restrictions.

@@ -0,0 +1 @@
org.openjproxy.jdbc.Driver,jdbc:ojp[localhost:1059]_mariadb://localhost:50000/testmariadb,db2inst1,testpass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MariadDB runs on port 3307 for tests on the main CI workflow, not on 50000. Please test any changes before submitting a PR.

@@ -0,0 +1 @@
org.openjproxy.jdbc.Driver,jdbc:ojp[localhost:1059]_mariadb://localhost:50000/testmariadb,db2inst1,testpass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ignorant05 Some documentation of MariaDB suggests that to work with XA it needs to use mysql url standard (lets remember that MariaDB is a fork of MySQL), so your URL might look like this in the end:
org.openjproxy.jdbc.Driver,jdbc:ojp[localhost:1059]_mysql://localhost:3307/testmariadb,testuser,testpassword

But please test locally before submitting.

* 3. The client-side code updated to use integrated StatementService
*/
@Slf4j
public class DB2XAIntegrationTest {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ignorant05 these tests are not passing locally, please refer to https://github.com/Open-J-Proxy/ojp/blob/main/documents/environment-setup/db2-testing-guide.md and test them before submitting the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants