These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate / JBoss Transaction management
PostPosted: Wed Oct 13, 2004 10:41 am 
Beginner
Beginner

Joined: Tue Sep 21, 2004 1:49 pm
Posts: 33
Location: Bogota, Colombia
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>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 20, 2004 1:48 pm 
Beginner
Beginner

Joined: Tue Sep 21, 2004 1:49 pm
Posts: 33
Location: Bogota, Colombia
Can anyone help me on this? :S

Or how can I gain control of hibernate transactions? can jboss transaction management be disabled so I can use session.beginTransaction(), rollover() and commit()?

Or am I totally lost about this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.