I need to know how to set that when i run a tx.commit() th esession is closed autommatically.
I need to set that property off
i try
Code:
<server>
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
<attribute name="DatasourceName">java:/repository</attribute>
<attribute name="Dialect">org.hibernate.dialect.SQLServerDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ShowSqlEnabled">false</attribute>
<attribute name="AutoCloseSessionEnabled">false</attribute>
</mbean>
</server>
at my hibernate-service.xml an d it does not working..
any ideas???