3 Replies Latest reply on Oct 1, 2005 12:38 PM by duranek

    How deploy several HAR files?

    trofimov

      I have deployed HAR file with hibernate-service.xml (use hibernate

      3 and JBOSS 4.x)



      java:/DefaultDS
      org.hibernate.dialect.PostgreSQLDialect
      java:/hibernate/SessionFactory
      org.hibernate.cache.HashtableCacheProvide

      r
      create-drop
      true



      And i want deploy new HAR file. Jboss print error in log:

      org.jboss.deployment.DeploymentException: Trying to install an

      already registered mbean: jboss.har:service=Hibernate

      How i can deploy new har file and use existing SessionFactoryName?
      Thank you.

        • 1. Re: How deploy several HAR files?
          trofimov

          hibernate-service.xml:


          java:/DefaultDS
          org.hibernate.dialect.PostgreSQLDialect
          java:/hibernate/SessionFactory
          org.hibernate.cache.HashtableCacheProvide

          r
          create-drop
          true


          • 2. Re: How deploy several HAR files?
            trofimov

            Sorry:

            <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.PostgreSQLDialect</attribute>
             <attribute
            
            name="SessionFactoryName">java:/hibernate/SessionFactory</attribute
            
            >
             <attribute
            
            name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvide
            
            r</attribute>
             <attribute name="Hbm2ddlAuto">create-drop</attribute>
             <attribute name="ShowSqlEnabled">true</attribute>
             </mbean>
            </server>


            • 3. Re: How deploy several HAR files?
              duranek

              Hi,

              How did you solve the problem ?