1 Reply Latest reply on Aug 12, 2010 5:08 AM by Muralidhar S

    How to define multiple session factories jboss5.1

    Muralidhar S Newbie

      Hi,

       

      How can I define multiple session factories in the jboss-service-hibernate.xml file?

       

      When I tried to define as below, I get the parsing exception:

       

      <hibernate-configuration xmlns="urn:jboss:hibernate-deployer:1.0">

       

           <session-factory name="java:/hibernate/MasterHibernateFactory" ....>

                 ......

           </session-factory>

       

           <session-factory name="java:/hibernate/DefaultHibernateFactory" ....>

                 ......

           </session-factory>

       

      </hibernate-configuration>

       

       

      Any help please?

       

      Regards

      -murali