Hi !!
I want use Hibernate with JBoss.
So, I have attended the documentation "Using Hibernate with JBoss" on this site.
But I have a problem when I deploy my service.
There is the code of my JBoss service XML file
Code:
<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=NukesDS</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">mappings/Style.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/NukesDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="CacheProvider">net.sf.ehcache.hibernate.Provider</attribute>
</mbean>
The problem is apparently there isn't attribute named CacheProvider.
What I have to do? Delete CacheProvider attribute or there is an other solution??
Code:
16:31:45,515 INFO [ServiceConfigurator] Problem configuring service jboss.jca:service=HibernateFactory, name=HibernateFactory
org.jboss.deployment.DeploymentException: No Attribute found with name: CacheProvider
Thanks for your help...