Skip to content

Commit

Permalink
KOGITO-4337: Update timer examples after supporting PostgreSQL persis…
Browse files Browse the repository at this point in the history
…tence for Job Service (apache#644)
  • Loading branch information
xieshenzh authored Apr 21, 2021
1 parent b1e415c commit 66a182f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
18 changes: 11 additions & 7 deletions process-timer-quarkus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,13 @@ You can download it from [Select Latest Version]
https://repo.maven.apache.org/maven2/org/kie/kogito/jobs-service/

```sh
java -Dquarkus.http.port=8085 -jar target/jobs-service-{version}-runner.jar
java -Dquarkus.http.port=8085 -jar jobs-service-common/target/jobs-service-common-{version}-runner.jar
```

* After Starting Kogito Web Service you should see a similar Log as follows

<p align="center"><img src="docs/images/kogitoWebServiceLog.png"></p>

Note that in the above log infinispan has started on port 11222

In case you'd like to run the job service with enabled persistence then start
Infinispan server before and then run the job service with following command

Expand All @@ -318,16 +316,22 @@ Start Infinispan Server
[Infinispan Directory]/bin/sh server.sh

```
java -Dquarkus.http.port=8085 -Dkogito.jobs-service.persistence=infinispan -jar target/jobs-service-{version}-runner.jar
java -Dquarkus.http.port=8085 -jar jobs-service-infinispan/target/jobs-service-infinispan-{version}-runner.jar
```

in both cases replace `{version}` with actual Kogito version to be used (Job Service is available from 0.6.0)

* After Starting Infinispan you should see a similar Log as follows

<p align="center"><img src="docs/images/infinispanRunning.png"></p>

After that you can redo the timer queries described above
If you'd like to use PostgresSQL as persistence, start the PostgreSQL server, then start job service with following command

```
java -Dquarkus.http.port=8085 -Dquarkus.datasource.username={username} -Dquarkus.datasource.password={password} -Dquarkus.datasource.reactive.url=postgresql://{host}:{port}/{db} -Dquarkus.datasource.jdbc.url=jdbc:postgresql://{host}:{port}/{db} -jar jobs-service-postgresql/target/jobs-service-postgresql-{version}-runner.jar
```

In all cases replace `{version}` with actual Kogito version to be used (Job Service is available from 0.6.0)

After that you can redo the timer queries described above.

## Deploy on OpenShift

Expand Down
Binary file modified process-timer-quarkus/docs/images/kogitoWebServiceLog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 10 additions & 6 deletions process-timer-springboot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,13 @@ You can download it from [Select Latest Version]
https://repo.maven.apache.org/maven2/org/kie/kogito/jobs-service/

```sh
java -Dquarkus.http.port=8085 -jar target/jobs-service-{version}-runner.jar
java -Dquarkus.http.port=8085 -jar jobs-service-common/target/jobs-service-common-{version}-runner.jar
```

* After Starting Kogito Job Service you should see a similar Log as follows

<p align="center"><img src="docs/images/kogitoWebServiceLog.png"></p>

Note that in the above log infinispan has started on port 11222

In case you'd like to run the job service with enabled persistence then start
Infinispan server before and then run the job service with following command

Expand All @@ -269,15 +267,21 @@ Start Infinispan Server
[Infinispan Directory]/bin/sh server.sh

```sh
java -Dquarkus.http.port=8085 -Dkogito.jobs-service.persistence=infinispan -jar target/jobs-service-{version}-runner.jar
java -Dquarkus.http.port=8085 -jar jobs-service-infinispan/target/jobs-service-infinispan-{version}-runner.jar
```

in both cases replace `{version}` with actual Kogito version to be used (Job Service is available from 0.6.0)

* After Starting Infinispan you should see a similar Log as follows

<p align="center"><img src="docs/images/infinispanRunning.png"></p>

If you'd like to use PostgresSQL as persistence, start the PostgreSQL server, then start job service with following command

```sh
java -Dquarkus.http.port=8085 -Dquarkus.datasource.username={username} -Dquarkus.datasource.password={password} -Dquarkus.datasource.reactive.url=postgresql://{host}:{port}/{db} -Dquarkus.datasource.jdbc.url=jdbc:postgresql://{host}:{port}/{db} -jar jobs-service-postgresql/target/jobs-service-postgresql-{version}-runner.jar
```

In all cases replace `{version}` with actual Kogito version to be used (Job Service is available from 0.6.0)

After that you can redo the timer queries described above.

## Deploy on OpenShift
Expand Down
Binary file modified process-timer-springboot/docs/images/kogitoWebServiceLog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 66a182f

Please sign in to comment.