Hibernate version:2.1.6
Hello, my simple (and totally newbi) question is: How do I control a transaction when my application is deployed in Jboss? I know JBoss controls the transactions (so I only do openSession, flushSession and closeSession, no "hibernate.transaction" declarements), but I need to know how it works and what alternatives do I have. It's been working fine for grained operations (single save-update-delete and queries), but I'm concerned about really big transactions involving a lot of operations.. like big imports for instance.
Is there a document I'm missing? Is there any documentation about this? I'd really appreciate any help!
The MBean for the hibernate service looks like this:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=app.Hibernate">
<depends>jboss.jca:service=RARDeployer</depends><depends>jboss.jca:service=LocalTxCM,name=appDS</depends>
<attribute name="MapResources"> (...) .hbm.xml</attribute>
<attribute name="JndiName">java:/app.HibernateFactory</attribute>
<attribute name="Datasource">java:/appDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.Oracle9Dialect</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
</server>
|