Skip to content

Commit

Permalink
Fix issue of connection when pods is restarting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrateau committed Jun 5, 2019
1 parent 444c1ef commit ff082b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions decisioncenter/config/datasource-postgres.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<server>

<!-- decision center datasource -->
<dataSource id="dcdatasource"
<dataSource id="dcdatasource"
isolationLevel="TRANSACTION_READ_COMMITTED"
jndiName="jdbc/ilogDataSource"
statementCacheSize="150"
jdbcDriverRef="postgresql-driver"
validationTimeout="0"
type="javax.sql.ConnectionPoolDataSource">
<connectionManager
maxPoolSize="25"
Expand All @@ -25,13 +26,13 @@
user="odmusr"
password="odmpwd"
portNumber="5432"
serverName="dbserver" />
serverName="dbserver" />
</dataSource>

<jdbcDriver id="postgresql-driver"
javax.sql.ConnectionPoolDataSource="org.postgresql.ds.PGConnectionPoolDataSource"
javax.sql.XADataSource="org.postgresql.xa.PGXADataSource"

libraryRef="postgresql-library"/>

<library id="postgresql-library">
Expand Down
1 change: 1 addition & 0 deletions standalone/config/datasource-postgres.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
isolationLevel="TRANSACTION_READ_COMMITTED"
jndiName="jdbc/ilogDataSource"
statementCacheSize="150"
validationTimeout="0"
jdbcDriverRef="postgresql-driver"
type="javax.sql.ConnectionPoolDataSource">
<connectionManager
Expand Down

0 comments on commit ff082b9

Please sign in to comment.