Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cargotracker-dev] web.xml modification to run PostgreSQL Docker container with OL

As long as Payara keeps working, this seems fine.
 

From: Chanun Ong <ocseal@xxxxxxxxx>
Sent: Wednesday, July 27, 2022 4:26 PM
To: cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>; reza_rahman@xxxxxxxxx <reza_rahman@xxxxxxxxx>
Subject: web.xml modification to run PostgreSQL Docker container with OL
 
Hi Reza,

In order to get Open Liberty running with PostgreSQL in a Docker container, the datasource definition in the web.xml needed to be changed to the following: 
	<data-source>
		<name>java:app/jdbc/CargoTrackerDatabase</name>
		<class-name>${db.driverClass}</class-name>
		<url>${db.jdbcUrl}</url>
		<user>${db.user}</user>
		<password>${db.password}</password>
		<max-pool-size>32</max-pool-size>
		<min-pool-size>2</min-pool-size>
	</data-source>
For Payara, the db.user and db.password properties can be assigned to empty strings in the pom.xml as they're not needed to set up the datasource in your implementation. Let me know if this modification would be accepted or if you'd prefer a different approach. 
Best,
Chanun

Back to the top