We have to reconfigure our catalog-service again so that it works with the PostgreSQL database.
Let's start with the pom.xml changes—we have to add Postgres dependency to it:
(...) <dependencies> (...) <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>jpa</artifactId> <version>${version.wildfly.swarm}</version> </dependency> <!-- 1 --> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>${version.postgresql}</version> </dependency> </dependencies>(...)
We have changed the database driver from h2 to PostgreSQL (1).
Let's change the datasource configuration:
swarm: datasources: data-sources: CatalogDS: ...