I've deployed Hibernate as a SAR in JBoss 3.2.3.
Here's my jboss-service.xml file:
Code:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=ArsolHibernateFactory,
name=ArsolHibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=arsolDS</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">
mapping/ArmazemMistura.hbm.xml,
mapping/ArmazemMp.hbm.xml,
mapping/ArmazemPa.hbm.xml,
mapping/ArmazemPeca.hbm.xml
</attribute>
<attribute name="JndiName">java:/hibernate/ArsolHibernateFactory</attribute>
<attribute name="Datasource">java:/arsolDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
</mbean>
</server>
I'm trying to use a Session Bean with CMT(Container Managed Transaction) to execute some logic.
When I execute the code, no error appears but no changes are made to the DB. Seems to me that I don't have the transaction well configured.
My
ejb-jar.xml is configured to allow the container to manage the transactions.
Don't know where to look anymore.
Please help.