Hi,

we have a specific feature to help in that case.
Set the alternate descriptor system property to choose which one you wanna
pickup.

Another option is to use arquillian.

Jean-Louis


2013/4/26 jaigates <[email protected]>

> Hi,
> I have 2 persistence.xml in my maven project,
>  1. src/main/resources
>  2. src/test/resources
>
> When i run the testcase,it s picking file from main/resources instead of
> test/resources and throwing the following error,
> the reference @PersistenceContext(name="entityManager",
> unitName="entityManagername") cannot be resolved as there are 6 units with
> the same name.
>
> Kindly let me know how to ignore persistence.xml main/resouces while
> running
> test case,
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Multiple-persistence-xml-tp4662474.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



-- 
Jean-Louis

Reply via email to