/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>
Comments
