josehernandezfintecheandomx commented on code in PR #2344:
URL: https://github.com/apache/fineract/pull/2344#discussion_r887224820


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/service/TomcatJdbcDataSourcePerTenantService.java:
##########
@@ -80,15 +86,28 @@ public DataSource retrieveDataSource() {
     // creates the tenant data source for the oltp and report database
     private DataSource createNewDataSourceFor(final 
FineractPlatformTenantConnection tenantConnectionObj) {
         String protocol = toProtocol(this.tenantDataSource);
-        String jdbcUrl = toJdbcUrl(protocol, 
tenantConnectionObj.getSchemaServer(), 
tenantConnectionObj.getSchemaServerPort(),
-                tenantConnectionObj.getSchemaName(), 
tenantConnectionObj.getSchemaConnectionParameters());
+        // Default properties for Writing
+        String schemaServer = tenantConnectionObj.getSchemaServer();
+        String schemaPort = tenantConnectionObj.getSchemaServerPort();
+        String schemaName = tenantConnectionObj.getSchemaName();
+        String schemaUsername = tenantConnectionObj.getSchemaUsername();
+        String schemaPassword = tenantConnectionObj.getSchemaPassword();
+        // Properties to ReadOnly case
+        if (this.fineractProperties.getMode().isReadOnlyMode()) {

Review Comment:
   How we can run the ReadOnly instance mode type, remember that If the 
instance mode is ReadOnly, Liquibase is not executed in the startup time and 
then we'll have not an initial database schema.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to