-->
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: JBoss and Container Managed Transactions (CMT)
PostPosted: Tue Aug 26, 2003 6:22 pm 
Newbie

Joined: Tue Aug 26, 2003 6:01 pm
Posts: 3
Hi,

I am using JBoss 3.2.1 with Hibernate 2.0.1 on top of MySQL 3.49 with
InnoDB tables. I would like use CMT, but I am unsure of the correct
configuration.

The Using Hibernate with JBoss document lists the following mbean config file:

<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory,
name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">mappings/Attribute.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/MySqlDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</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">java:/UserTransaction</attribute>
</mbean>
</server>


My setup is very similar.

Questions:
1. The datasource is listed as a service of type LocalTxCM. Does this
mean it supports local CMT only? Requires CMT?

2. Why is the JBossTransactionManagerLookup specified as well as
the JTATransactionFactory? After reading section 2.5.6 of the
reference manual, I am unsure whether this is an either/or choice
or the Lookup specification is used in tandem with the JTA factory.
Could you provide an explanation of the manual paragraph regarding
use of JVM Level caching in a JTA environment?

Thanks in advance.

BTW, is there any way to archive the sourceforge forum stuff onto
this server? The sourceforge forum is incredibly sloooooow and
almost unsearchable. Most of my searches just die before anything
is returned; there is a huge amount of data there that is useful.
Thx.

_________________
John Goyer


Top
 Profile  
 
 Post subject: Re: JBoss and Container Managed Transactions (CMT)
PostPosted: Wed Oct 13, 2010 5:35 am 
Newbie

Joined: Wed Oct 13, 2010 5:25 am
Posts: 10
I spent my whole life trying not to be careless. Women and children can be careless. But not men.

_________________
cheap watches
replica watches uk
replica watches


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.