Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-681

EnableClusterConfiguration annotation attributes are silently ignored

    XMLWordPrintable

Details

    • Kay GA, Kay SR1

    Description

      All @EnableClusterConfiguration annotation attributes are ignored by SDG when configured by the user and their settings have no effect on the application.

      This is easy enough to workaround by setting the corresponding configuration property.

      For example, if a user wanted to push the Cluster Configuration from his/her Spring Boot, Apache Geode client cache application to a Geode cluster using HTTP, the user would do the following:

      @SpringBootApplication
      @ClientCacheApplication
      @EnableClusterConfiguration(useHttp = true)
      class MySpringBootGeodeCacheClientApplication {
        ...
      }
      

      NOTE: the default value for the useHttp attribute is false.

      However, the value of useHttp when set using the annotation attribute is ignored by SDG. So the user must set the corresponding configuration property instead, in the Spring Boot application.properties file as so...

      spring.data.gemfire.management.use-http=true
      

      Using the corresponding configuration property works around the bug.

      Attachments

        Activity

          People

            jblum John Blum
            jblum John Blum
            John Blum John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: