title: Cannot find cache named
body: <p>I'm trying to use gemfire in my app to do caching. Here's my properties:</p>
  
  <pre><code>&lt;context:component-scan base-package="my-base-package"/&gt;
  &lt;context:annotation-config/&gt;
  
  &lt;!-- Gemfire transation manager --&gt;
  &lt;gfe:transaction-manager id="transactionManager" cache-ref="propertyGemfireCache"/&gt;
  
  &lt;!-- Gemfire properties --&gt;
  &lt;util:properties id="gemfire-props"
                   location="classpath:conf/environments/gemfire.properties"/&gt;
  
  &lt;!-- Gemfire Client cache --&gt;
  &lt;gfe:client-cache id="propertyGemfireCache" properties-ref="gemfire-props"
                    pool-name="gemfire-pool" pdx-serializer-ref="pdxSerializer" pdx-persistent="true"/&gt;
  
  &lt;!-- Gemfire PDX serializer --&gt;
  &lt;bean id="pdxSerializer" class="com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer"&gt;
      &lt;property name="serializableClasses"&gt;
          &lt;list&gt;
              &lt;value&gt;com\.acmecorp\.enterprise\.property\..*,java\.util\..*&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;!-- Gemfire connection pool --&gt;
  &lt;bean id="gemfire-pool" class="org.springframework.data.gemfire.client.PoolFactoryBean"&gt;
      &lt;property name="subscriptionEnabled" value="true"/&gt;
      &lt;property name="freeConnectionTimeout" value="60000"/&gt;
      &lt;property name="prSingleHopEnabled" value="true"/&gt;
      &lt;property name="locators" ref="gemfireLocators"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="gemfireCacheManager" class="org.springframework.data.gemfire.support.GemfireCacheManager"
        p:cache-ref="propertyGemfireCache"/&gt;
  
  &lt;gfe:client-region id="myRegion" name="${cache.region.name}" statistics="true"
                     cache-ref="propertyGemfireCache" shortcut="LOCAL"&gt;
      &lt;gfe:region-ttl timeout="86400"/&gt;
  &lt;/gfe:client-region&gt;
  &lt;bean id="myTemplate" class="org.springframework.data.gemfire.GemfireTemplate"&gt;
    &lt;property name="region" ref="myRegion"/&gt;
  &lt;/bean&gt;
  &lt;cache:advice id="myAdvice" cache-manager="gemfireCacheManager"&gt;
      &lt;cache:caching&gt;
          &lt;cache:cacheable cache="myRegion" method="getSomeData"
                           key="''+#data"/&gt;
      &lt;/cache:caching&gt;
  &lt;/cache:advice&gt;
  
  &lt;aop:config&gt;
      &lt;aop:advisor advice-ref="myAdvice"
                   pointcut="execution( * *..ServiceImpl.getData(..)) and within(another-my-package.service.impl..*)"/&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>Property <code>cache.region.name</code> is equal to <code>correct_region_name</code>.
  If I run my app i will get an error like:</p>
  
  <p>Cannot find cache named 'myRegion' for CacheableOperation[] caches=[myRegion]</p>
  
  <p>But if I replace "myRegion" with the correct region, which is <code>correct_region_name</code>. So it would look like this:</p>
  
  <pre><code>&lt;cache:cacheable cache="correct_region_name" method="getSomeData"
                           key="''+#data"/&gt;
  </code></pre>
  
  <p>Everything will work perfectly, but i don't need that. Any Help?</p>