Hi,
I'm using OpenEJB for some Integration tests for my datasystem. In
production the entities and DAO's working with Hibernate and JBoss and with
a own persistence.xml. For the integration test I spezified a own
test.persistence.xml which is using H2 memory DB. I was looking for a way
how I can replace or overwrite the orig persistence.xml from the datasystem.
So I found the openejb.altdd.prefix - Property. When I run my tests with
OpenEJB I got this error: @PersistenceContext unitName has multiple matches:
unitName "movieDB" has 2 possible matches. So it seems, that both
configurations are deployed. Make this behaivour sence? I can't changed my
DAO's in datasystem (changed unitName on Entitymanager), they should also
work in prod environment. Maybe a bug? Any workarounds for that?

Thanks




--
View this message in context: 
http://openejb.979440.n4.nabble.com/Using-openejb-altdd-prefix-Why-orig-persistence-xml-is-not-removed-tp4670052.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Reply via email to