title: Can Spring's LocalContainerEntityManagerFactoryBean be used in a J2SE environment?
body: <p><br>
  I'm using Spring in Glassfish and I have the need to configure it so it also works outside of the container, mainly for development purposes.<br>
  What I'm uncertain of, and couldn't find the answer to, was whether I can use the <code>LocalContainerEntityManagerFactoryBean</code> class without a container.<br>
  From its name, <code>LocalContainer</code>, it seems I can but in the <a href="http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.html" rel="nofollow">docs</a> it says:</p>
  
  <blockquote>
    <p>FactoryBean that creates a JPA
    EntityManagerFactory according to
    JPA's standard <em>container</em> bootstrap
    contract</p>
  </blockquote>
  
  <p>so I'm uncertain about this issue.  </p>
  
  <p>Thanks,<br>
  Ittai</p>