Skip to content

Commit

Permalink
Merge pull request #29787 from imperatorx/fix-pg-xa-native-mode
Browse files Browse the repository at this point in the history
Fix PostgreSQL XA mode in native images
  • Loading branch information
gsmet authored Dec 13, 2022
2 parents f365a14 + 585a7d9 commit 837eb34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {
//We register it for the sake of other users.
final String driverName = "org.postgresql.Driver";
reflectiveClass.produce(new ReflectiveClassBuildItem(false, false, driverName));

// Needed when quarkus.datasource.jdbc.transactions=xa for the setting of the username and password
reflectiveClass.produce(new ReflectiveClassBuildItem(false, true, false, "org.postgresql.ds.common.BaseDataSource"));
}

}

0 comments on commit 837eb34

Please sign in to comment.