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

WiringInstantiator should not register instantiators using the method that causes distribution

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • None
    • Gemfire 6.5.1.2, Spring Gemfire 1.0.0

    Description

      When using a WiringInstantiator, the instantiator needs to be set up on each machine by the Spring application context. Unfortunately, the corrent code causes the created instantiators to be distributed, so the first server works, but second one fails.

      In WiringInstantiator:

      public void afterPropertiesSet() {
      if (configurer == null)

      { configurer = new BeanConfigurerSupport(); configurer.setBeanFactory(beanFactory); configurer.afterPropertiesSet(); }

      if (autoRegister)

      { here --> Instantiator.register(this); }

      }

      Should be:

      if (autoRegister)

      { here --> Instantiator.register(this,false); }

      False will not distribute this to the other nodes.

      Attachments

        Issue Links

          Activity

            People

              costin Costin Leau
              askogman Adam Skogman
              John Blum John Blum
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: