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
|