EasyBeans
  1. EasyBeans
  2. EZB-168

Support of multiple persistence.xml file across different modules of the same EAR

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EasyBeans 1.0 M6
    • Fix Version/s: EasyBeans 1.0 RC1
    • Component/s: Persistence
    • Labels:
      None
    • Global Rank:
      2538

      Description

      An EAR can have mutliple modules and these modules can have their own persistence.xml file.

      This has been raised by Georgi on EasyBeans mailing list:

      I made one EAR file, who contains two JAR files and two WAR files.
      Every JAR file contain some entity beans and used owns persistence.xml
      file (one for every jar)
      The first persistence.xml contain persistence-unit that use connection
      to one MySQL server, and
      in the second persistence.xml contain persistence-unit that use
      connection to one Oracle server.

      When I deploy this EAR to EB(EasyBeans)-Tomcat-6.0.13, I see in console
      following exception :
      ...
      Caused by: java.lang.IllegalStateException: There is an existing
      persistence.xml in another library of this EAR. This is not supported.
      ...

        Activity

        Hide
        Florent Benoit
        added a comment -

        fixed

        Show
        Florent Benoit
        added a comment - fixed
        Hide
        Loïc Albertin
        added a comment -

        Closing old resolved issues

        Show
        Loïc Albertin
        added a comment - Closing old resolved issues

          People

          • Assignee:
            Florent Benoit
            Reporter:
            Florent Benoit
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Issue deployment