I'm new to this so maybe I'm misunderstanding it, but doesn't Tomcat 4 support JMX MBeans? I can configure the MBean in my Tomcat server.xml and provide an mbean-descriptor.xml file as is discussed here:
http://jakarta.apache.org/tomcat/tomcat ... howto.html
So if that's correct so far, what I'm wondering is what are the appropriate values for the mbean-descriptor.xml when using Hibernate on Tomcat. For instance, a JBoss example shows the following configuration, what values would I use for instance in place of these Jboss specifics:
<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">UserTransaction</attribute>
</mbean>