Return to Snippet

Revision: 9477
at November 9, 2008 05:11 by haru01


Initial Code
  <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
    <depends>jboss:service=Naming</depends>
    <depends>jboss:service=TransactionManager</depends>
    <depends optional-attribute-name="DeployedTreeCacheObjectName">jboss.har:service=HarSecondLevelCache</depends>

    <attribute name="DatasourceName">java:/DefaultDS</attribute>
    <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
    <attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
    <!--
      I've had off-and-on problems with HSQL and batching.  The HSQLDialect enables
      batching by default; uncomment this if there is trouble batching against
      HSQLDB.
    <attribute name="JdbcBatchSize">0</attribute>
    -->
    <attribute name="CacheProviderClass">org.jboss.hibernate.cache.DeployedTreeCacheProvider</attribute>
    <attribute name="SessionFactoryInterceptor">org.jboss.test.hibernate.SimpleInterceptor</attribute>
    <attribute name="Hbm2ddlAuto">create-drop</attribute>
  </mbean>

Initial URL


Initial Description


Initial Title
hibernate mbean

Initial Tags
textmate, java

Initial Language
Other