users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Thu, 04 Feb 2010 01:45:06 PST

I would normally prefer to encapsulate all entity specific queries in a manager, that way I can keep queries and other persistence related functionality in one place, makes it easy to maintain and can be reused by multiple clients.

BR,
Mohamed
[Message sent by forum member 'mohamedelshami' (mohamed.shami_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=384696