3 Replies Latest reply on Jul 24, 2008 10:33 AM by lynchie

    Multiple persistence.xml files - single persistent unit

    rspivak

      Hello everybody,

      Is there any possibility in JBoss to have multiple persistence.xml files in different jars, but with the same persistent unit name, so that it will be like 'merged' persistent unit?

      This way one can deploy jars to add additional entities without need to modify persistence.xml file in 'master' jar.

      I tried but it didn't work for me, though maybe i've just missed something and there are tweaks to achieve that.

      Thanks,
      Ruslan