You'd need to use a persistencemodule with a configured rooturl. You can
use openejb scanning too.

That said this doesnt match appcomposer anymore because of this.
Le 23 mai 2013 19:40, "AndreasN" <[email protected]> a écrit :

> Hi,
>
> thank you for responding!
>
> Ok, I understand the outlined examples and the core concept of the
> ApplicationComposer. Nevertheless I would like / or I need the entity
> inititialisation through hibernate with auto-scanning entities and
> dependencies due I have no luck to do it by hand and hundreds of entities.
>
> The question remains how to force hibernate do that task; I got an
> exception
> from hibernate that it can't find the persistence.xml, independent from
> OpenEJB. For the "regular" Test setup without the ApplicationComposer
> hibernate take care  of all classes and there it works; only the long
> loading time for EJB deploying is a bit annoying here.
>
> Kind regards,
> Andreas
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/ApplicationComposer-JUnit-EJB-Tests-autoscanning-issue-and-Hibernate-tp4663182p4663189.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Reply via email to