Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12096

ConfigurationBuilder::withProperties should not overwrite the transactionMode

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.0.0.Final
    • 11.0.1.Final
    • Hot Rod
    • None

      ConfigurationBuilder::withProperties should not overwrite the transactionMode

       

            if (transactionMode != null) {
               config.transaction().transactionMode(TransactionMode.valueOf(transactionMode));
            }      
      
            config.maxRetries(maxRetries).socketTimeout(connectionTimeout).connectionTimeout(connectionTimeout);      
      
            if (propertiesPath != null) {
               Properties p = new Properties();
               try (Reader r = new FileReader(propertiesPath)) {
                  p.load(r);
                  config.withProperties(p);
               } catch (IOException e) {
                  throw new IllegalStateException("Something went wrong with provided properties file:" + propertiesPath, e);
               }
            }
            return config;
         }

       

      infinispan.client.hotrod.auth_username=admin
      infinispan.client.hotrod.auth_password=password
      infinispan.client.hotrod.auth_realm=default
      infinispan.client.hotrod.sasl_mechanism=SCRAM-SHA-512

       

       

              pruivo@redhat.com Pedro Ruivo
              dlovison@redhat.com Diego Lovison
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: