Hi

1)
http://svn.apache.org/repos/asf/tomee/tomee/trunk/server/openejb-cxf-rs/src/test/java/org/apache/openejb/server/cxf/rs/CdiInterceptorContextTest.java
uses
testing package annotations
2) you can use @Classes annotation to list classes to take into account for
the test on top of the module method or simply list classes in the @Module
method like in
http://svn.apache.org/repos/asf/tomee/tomee/trunk/container/openejb-core/src/test/java/org/apache/openejb/resource/jdbc/JtaFailOverRouterTest.java

about the persistence.xml you can unmarshal it from
JaxbPersistenceFactory.getPersistence(Persistence.class, url)

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/5/23 AndreasN <[email protected]>

> Hi Romain,
>
> Do you have some examples for 1) ?
>
> How can load the persistence.xml and pass it through hibernate to let the
> initialisation do?
>
> add 3.) do you mean the manual EJB adding by:
>
>  @Module
>    public EjbJar beans() {
> ...
>  EjbJar ejbJar = new EjbJar("erp-beans");
>  ejbJar.addEnterpriseBean(new StatelessBean(clazzy));
> ...
> ??
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/ApplicationComposer-JUnit-EJB-Tests-autoscanning-issue-and-Hibernate-tp4663182p4663185.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Reply via email to