|
The HibernateService depends on two other JMX services: service=RARDeployer and service=LocalTxCM,name=DataSource, both in the jboss.jca service domain name.
The Hibernate MBean may be found in the package net.sf.hibernate.jmx. Unfortunately, lifecycle management methods like starting and stopping the JMX service aren’t part of the JMX 1.0 specification. The methods start() and stop() of the HibernateService are therefore specific to the JBoss application server.
<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=DataSource</depends>
<attribute name="MapResources">
auction/Item.hbm.xml, auction/Bid.hbm.xml
</attribute>
<attribute name="JndiName">
java:/hibernate/HibernateFactory
</attribute>
<attribute name="Datasource">
java:/comp/env/jdbc/AuctionDB
</attribute>
<attribute name="Dialect">
net.sf.hibernate.dialect.PostgreSQLDialect
</attribute>
<attribute name="TransactionStrategy">
net.sf.hibernate.transaction.JTATransactionFactory
</attribute>
<attribute name="TransactionManagerLookupStrategy">
net.sf.hibernate.transaction.JBossTransactionManagerLookup
</attribute>
<attribute name="UserTransactionName">
java:/UserTransaction
</attribute>
</mbean>
</server>
|
|