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

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Labels:
      None
    • Environment:
      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

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

                Dates

                Created:
                Updated:
                Resolved: