Hi,
I have this strange situation - my JBoss MBean is restarting upon each opening of a net.sf.hibernate.Session.
hibernate-service.xml:
Code:
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=cellmera/core/DataSource</depends>
<attribute name="JndiName">java:/cellmera/core/HibernateFactory</attribute>
<attribute name="Datasource">java:/cellmera/core/DataSource</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="MapResources">
com/gosa/cellmera/core/classes/User.hbm.xml
com/gosa/cellmera/core/classes/Role.hbm.xml
com/gosa/cellmera/core/classes/Permission.hbm.xml
</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UserTransactionName">java:/UserTransaction</attribute>
<attribute name="ShowSql">true</attribute>
</mbean>
UserServiceBean.java:[code]
public void setSessionContext(SessionContext sessionContext) {
this.sessionContext = sessionContext;
try {
System.out.println("DEBUG: UserServiceBean s