1 Reply Latest reply on Sep 28, 2004 2:27 AM by drew2002

    Problem with 2 hibernate persistence layers running at once

    drew2002 Newbie

      Hi all,
      The problem I am having is that I have two separate applications running on the same JBoss server, each with EJB session Beans and hibernate persistence layers, the problem is that which ever is the last to be deployed is the one that the hibernate.xml.cfg file is used for both apps.

      I can't simply add both the mapping to the one hibernate.xml.cfg file as I am using two different data sources.

      Should JBoss be using the hibernate.xml.cfg file that corresponds to the session bean I am using? or am I doing something wrong? Any suggestions?