1 2 Previous Next 18 Replies Latest reply on Nov 25, 2007 1:57 PM by Max Rydahl Andersen

    Double datasource files and persistence.xml in default Seam

    Ivan B Novice

      Hi,

      I've just generated a new Seam web project in Eclipse with the latest JBoss Tools installed. In the layout of the project folders there are two versions of perisistence.xml as well as datasource (MyProject-ds.xml) files.

      1. persistence.xmllocated in src/model/META-INF and src/META-INF

      When the application is deployed only the first one is put into the war, specifically into /WEB-INF/classes/META-INF folder.
      What is the point in second src/META-INF/persistence.xml?


      2. MyProject-ds.xml located in resources/ and src/model/META-INF

      The first one goes sibling with .war file (or directory) to the root dir of the deploy dir, the second goes into /WEB-INF/classes/META-INF, and apparently is ignored by JBossAS.

      What is the point of src/model/META-INF/MyProject-ds.xml?

      Is it somehow related to the differences between development/production/testing versions?

      Thanks,

        1 2 Previous Next