Updated Deploying and Running the Build (markdown) authored by OSPODksr's avatar OSPODksr
...@@ -15,6 +15,13 @@ To avoid conflicts between library versions (e.g. Hazelcast). ...@@ -15,6 +15,13 @@ To avoid conflicts between library versions (e.g. Hazelcast).
![image](https://user-images.githubusercontent.com/102658834/170981363-dcb0041e-5311-467c-abbf-fe2ce1feb18d.png) ![image](https://user-images.githubusercontent.com/102658834/170981363-dcb0041e-5311-467c-abbf-fe2ce1feb18d.png)
6. In **UrbanPulse/UrbanPulseResources/** there is a file called **glassfish-resources.xml**. This contains information (in the form of Java Naming and Directory Interface short JNDI variables and connection pools) such as connection to the database, connection to a keycloak server (comes later), etc.
7. It is important to configure the connection to the PostgreSQL database in the **jdbc-connection-pool** section. I.e. enter user, password and if necessary database name (urbanpulse) and hostname/port of Postgres (if changed).
8. The command **asadmin add-resources {path to}/glassfish-resources.xml** will create the JNDI Variables
/Connection Pools angelegt.
9. To verify the result, you can open the management page of Payara http://localhost:4848/ and under **Resources -> JDBC -> JDBC Connection Pools** you can see the pool from the configuration file. You can also test the connection by selecting the pool and then clicking on Ping. In addition, you can view the configurations for the database under the tab Additional properties.
... ...
......