title: spring 3.0 force singleton bean
body: <pre><code>&lt;bean id="data.emf"
    class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"  &gt;
    &lt;property name="persistenceUnitName" value="transactions-optional" /&gt;
  
   &lt;/bean&gt;
  </code></pre>
  
  <p>from what i know by default all bean are singleton (according to document) but i somehow still getting duplicated creating of entitymanagerfactory.   is there any parameter i can set for bean above in spring 3.0 to force singleton? the problem only appear in gae production, on hosted mode, no problem</p>