Hey,
I have a stateless as a facade and my DAO is a pojo class.
I create the entity manger from the factory that bind to the JNDI.
I have the following attributes in the persistence.xml:
Code:
<persistence>
<persistence-unit name="Demo">
<jta-data-source>java:/DemoDS</jta-data-source>
<properties>
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.DefaultComponentSafeNamingStrategy" />
<property name="hibernate.transaction.factory_class" value="org.hibernate.ejb.transaction.JoinableCMTTransactionFactory"/>
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
</properties>
</persistence-unit>
</persistence>
Do i need to explicity close the entity manager ?
Can i debug this in order to be sure that there are no open connection left open in my application?
Thank you[/code]