title: JPA 2.0 <shared-cache-mode> vs. javax.persistence.sharedCache.mode
body: <p>Using Spring 3.2.0, Eclipselink 2.5.0-M9</p>
  
  <p>When persistence.xml contains:</p>
  
  <pre><code>&lt;shared-cache-mode&gt;ENABLE_SELECTIVE&lt;/shared-cache-mode&gt;
  </code></pre>
  
  <p>Then if I examine the EntityManagerFactory during runtime, via emf.getProperties(), this property is not set.</p>
  
  <p>However, if I put it in my Spring entityManagerFactory configuration instead:</p>
  
  <pre><code>&lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
    ...
    &lt;property name="jpaPropertyMap"&gt;
      &lt;map&gt;
        &lt;entry key="javax.persistence.sharedCache.mode" value="ENABLE_SELECTIVE" /&gt;
      &lt;/map&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Then I can retrieve the property from emf.getProperties()</p>
  
  <p>Also, it appears that when using the spring config, the shared cache is not actually enabled. this leads me to believe that I'm not setting it correctly in the spring container.</p>
  
  <p>Ideas?</p>