users@glassfish.java.net

Re: How to access EntityManager of a EJB from a WAR? (without using facade pattern)

From: Xavier Callejas <xavier_at_wflogistics.com>
Date: Wed, 3 Feb 2010 13:13:58 -0600

On Miércoles 03 Febrero 2010 11:56:02 glassfish_at_javadesktop.org escribió:
> I don't see a point why you wouldn't manage your entity using a session
> EJB that's already deployed as ejb-jar

I will do CRUD using the model-ejb.jar deployed.

But in the WAR and also in another client application I will need a lot of
queries, I don't know if manage all these queries inside the model-ejb.jar
will be a hell.

I need to create these queries in clients apps. (war and stant-alone), that is
why I'm trying to access the EntityManager instance.

What would your recommend?

Thanks.
xavier