0 Replies Latest reply on Jan 30, 2013 6:11 PM by vpolakis

    migrate a hibernate .har archive from jboss 4.2.2 to jboss 7.1.1

    vpolakis

      Hi,

       

      I need to migrate a hibernate .har archive from jboss 4.2.2 to jboss 7.1.1

      As far as I understood I need to package that app as a simple .jar file

      And use a persistence.xml

       

      1. yourapp.jar

      |

      |--- <com/....../ classes>  and <hbm files>

      |

      |--- META-INF

      |         |

      |         |--- persistence.xml

       

      But I need some help to generate the persistence.xml

      My hibernate-service.xml is like following:

       

      <server>

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

      name="jboss.har:service=Hibernate">

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

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

      <attribute name="SessionFactoryName">TMFSessionFactory</attribute>

      <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider

      </attribute>

      <attribute name="Hbm2ddlAuto">update</attribute>

          </mbean>

      </server>

       

      Many thx in advance