2 Replies Latest reply on Oct 18, 2005 7:19 AM by Jacky Kimmel

    hibernate-service.xml

    deniz hepsen Newbie


      Hi,

      Do i have to put the hibernate.xml in all my ears ? ( do i have to create one hibernate mbean for each ear ? )




      java:/MySqlDS
      org.hibernate.dialect.MySQLDialect
      java:/hibernate/SessionFactory

      org.hibernate.cache.HashtableCacheProvider

      <!-- create -->

        • 1. Re: hibernate-service.xml
          deniz hepsen Newbie

          Hi,

          I deployed a ear that has a har file that has mapping xml, hibernate-service.xml and the pojo to jboss server. It works fine.


          When i deploy my second ear,
          i have the exception below:

          org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.har:service=Hibernate

          When i remove hibernate-service.xml from the har file , i got "MappingException: Unknown Entity" . So where is the problem ?

          Don't i have to put hibernate-service.xml in all my hars ? Is the MappingException related to this ?


          • 2. Re: hibernate-service.xml
            Jacky Kimmel Newbie

            No, just once.