This is an automated email from the ASF dual-hosted git repository.
mweiler pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 1a5610388 [incubator-kie-issues-1290] Fix application.properties in
process-postgresql-persistence-quarkus example (#1936)
1a5610388 is described below
commit 1a561038819c22ffcc4980231d04b4b60c9f852e
Author: Martin Weiler <[email protected]>
AuthorDate: Tue Jun 4 12:27:18 2024 -0600
[incubator-kie-issues-1290] Fix application.properties in
process-postgresql-persistence-quarkus example (#1936)
* [incubator-kie-issues-1290] Fix application.properties in
process-postgresql-persistence-quarkus example
* Fix datasource properties to work both in dev and prod mode
---
.../README.md | 2 +-
.../src/main/resources/application.properties | 24 +++-------------------
2 files changed, 4 insertions(+), 22 deletions(-)
diff --git
a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
index 6942102c1..c6d3111ba 100644
--- a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
+++ b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/README.md
@@ -59,7 +59,7 @@ It utilizes PostgreSQL server as the backend store.
This quickstart requires a PostgreSQL server to be available with a database,
a user and credentials already created
, these configurations should then be set in the data source URL parameter in
[applications.properties](src/main/resources/application.properties) file with
the key
- `quarkus.datasource.reactive.url`, i.e
`quarkus.datasource.reactive.url=postgresql://localhost:5432/kogito` here are
the [full settings for
URI](https://quarkus.io/guides/reactive-sql-clients#reactive-datasource)
+ `quarkus.datasource.jdbc.url`, i.e
`quarkus.datasource.jdbc.url=postgresql://localhost:5432/kogito`.
You must set the property `kogito.persistence.type=postgresql` to enable
PostgreSQL persistence. There is also a
configuration to allow the application to run DDL scripts during the
initialization, which you can enable with the
diff --git
a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/src/main/resources/application.properties
b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/src/main/resources/application.properties
index a68288a52..8919fc367 100644
---
a/kogito-quarkus-examples/process-postgresql-persistence-quarkus/src/main/resources/application.properties
+++
b/kogito-quarkus-examples/process-postgresql-persistence-quarkus/src/main/resources/application.properties
@@ -21,25 +21,7 @@ quarkus.swagger-ui.always-include=true
kogito.persistence.type=jdbc
quarkus.datasource.db-kind=postgresql
-#quarkus.datasource.username=postgres
-#quarkus.datasource.password=changeme
-#quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/jdbc_test
+%prod.quarkus.datasource.username=kogito-user
+%prod.quarkus.datasource.password=kogito-pass
+%prod.quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/kogito
quarkus.flyway.migrate-at-start=true
-
-kafka.bootstrap.servers=localhost:9092
-
-mp.messaging.outgoing.kogito-processinstances-events.connector=smallrye-kafka
-mp.messaging.outgoing.kogito-processinstances-events.topic=kogito-processinstances-events
-mp.messaging.outgoing.kogito-processinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer
-
-mp.messaging.outgoing.kogito-usertaskinstances-events.connector=smallrye-kafka
-mp.messaging.outgoing.kogito-usertaskinstances-events.topic=kogito-usertaskinstances-events
-mp.messaging.outgoing.kogito-usertaskinstances-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer
-
-mp.messaging.outgoing.kogito-variables-events.connector=smallrye-kafka
-mp.messaging.outgoing.kogito-variables-events.topic=kogito-variables-events
-mp.messaging.outgoing.kogito-variables-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer
-
-mp.messaging.outgoing.kogito-processdefinitions-events.connector=smallrye-kafka
-mp.messaging.outgoing.kogito-processdefinitions-events.topic=kogito-processdefinitions-events
-mp.messaging.outgoing.kogito-processdefinitions-events.value.serializer=org.apache.kafka.common.serialization.StringSerializer
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]