michael wrote:
createSchema and dropSchema
<server>
Heres my jboss-service.xml
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibe
rnateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<depends>jboss.jca:service=LocalTxCM,name=GossipDS</depends>
<attribute name="MapResources">mappings/LogMessage.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/GossipHibernate</attribute>
<attribute name="Datasource">java:/GossipDS</attribute>
<attribute name="Dialect">net.sf.hibernate.sql.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransa
ctionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">
net.sf.hibernate.transaction.JBossTransactionManagerLookup
</attribute>
<attribute name="CacheProvider">net.sf.hibernate.cache.HashtableCacheProvide
r</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="AutoCreateSchema">true</attribute> //MY PROBLEM
<!--<attribute name="UserTransactionName">java:/UserTransaction</attribute>-->
</mbean>
i need to have a valid attribute for "hibernate.hbm2ddl.auto" property in the above xml.
if its not possible how can i do that other way, like createSchema, updateSchema in HibernateServiceMbean....
please explain....