hibernate mbean


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
  2. <depends>jboss:service=Naming</depends>
  3. <depends>jboss:service=TransactionManager</depends>
  4. <depends optional-attribute-name="DeployedTreeCacheObjectName">jboss.har:service=HarSecondLevelCache</depends>
  5.  
  6. <attribute name="DatasourceName">java:/DefaultDS</attribute>
  7. <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  8. <attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
  9. <!--
  10. I've had off-and-on problems with HSQL and batching. The HSQLDialect enables
  11. batching by default; uncomment this if there is trouble batching against
  12. HSQLDB.
  13. <attribute name="JdbcBatchSize">0</attribute>
  14. -->
  15. <attribute name="CacheProviderClass">org.jboss.hibernate.cache.DeployedTreeCacheProvider</attribute>
  16. <attribute name="SessionFactoryInterceptor">org.jboss.test.hibernate.SimpleInterceptor</attribute>
  17. <attribute name="Hbm2ddlAuto">create-drop</attribute>
  18. </mbean>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.