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

ConfigurationBuilder::withProperties should not overwrite the transactionMode

    XMLWordPrintable

Details

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

    Description

      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

       

       

      Attachments

        Activity

          People

            pruivo@redhat.com Pedro Ruivo
            dlovison@redhat.com Diego Lovison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: