Sponsered Links
Categories
Sponsered Links

Hibernate jboss-service JMX deployment descriptor

 

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>

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved