Menu

external ra only 1 persistence unit

Help
Roman
2014-07-16
2014-07-24
  • Roman

    Roman - 2014-07-16

    EJBCA 6.2.0 running on JBoss 7.1.1.Final.

    When I configure more than 1 external ra sources in externalra.properties there is always just last one configured and persistence.xml available after deploying.

    How to use all external ra sources and load their persistence.xml to be available?

     
  • Roman

    Roman - 2014-07-16

    I mean that in externalra-service.jar there is always only one persistence-unit configured no matter how many externalra sources are defined in externalra.properties.

    Is it bug?

     
  • Roman

    Roman - 2014-07-16

    I also tried to do ant clean to be sure that there is nothing left but the result is the same.

    In persistence.xml is always just one persistence-unit and I have 3 externalra sources configured in externalra.properties.

     
  • Tomas Gustavsson

    Hi Roman,

    Can you try by adding the following line:

    <copy tofile="${build.dir}/META-INF/persistence.xml.template" file="${build.dir}/META-INF/persistence.xml" overwrite="true" failonerror="false"/>

    in modules/externalra/build.xml, before line 212 (which is a similar copy command).

    Cheers,
    Tomas

     
  • Tomas Gustavsson

    Hi Roman, I created this issue.

    https://jira.primekey.se/browse/ECA-3675

    Cheers,
    Tomas

     

Log in to post a comment.