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:
<session-factory name="java:/hibernate/MasterHibernateFactory" ....>
<session-factory name="java:/hibernate/DefaultHibernateFactory" ....>
Any help please?
Resolved for now. I just created another har file for the other session factory definition. Now, I have 2 har deployment with a single session factory in each.
Not sure if this a recommended approach though.