2 Replies Latest reply on Sep 20, 2011 3:04 AM by jaikiran

    Configure hibernate with JBOSS Mbean

    joydevsingha

      Hi,

       

      My application was initially deployed in JBOSS 4.2 and now I am migrating it to JBOSS 7. I am facing issues in configuring hibernate 3 in JBOSS 7.

      In jboss 4.2 I was using JBOSS Hibernate Mbean to configure hibernate. During deployment server was able to find all the mapping files in the application.

       

      How can I achieve similar setting in JBOSS 7 (with JBOSS Hibernate Mbean). I am putting content of hibernate-service.xml below

       

      <server>

          <mbean code="org.jboss.hibernate.jmx.Hibernate"

                  name="com.application:name=ApplicationSessionFactory">

                 

              <attribute name="DatasourceName">java:/ApplicationDS</attribute>

              <!--

              <attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>

              -->

              <attribute name="Dialect">org.hibernate.dialect.Oracle10gDialect</attribute>

               <attribute name="SessionFactoryName">java:/hibernate/ApplicationSessionFactory</attribute>

              <attribute name="ShowSqlEnabled">true</attribute>

              <attribute name="ScanForMappingsEnabled">true</attribute>

          </mbean>

      </server>

       

      Thanks,

       

      Joydev