users@glassfish.java.net

Re: Accessing EJB3 Entities remotely

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Sep 2007 13:55:44 PDT

Hi Shri,

You can get a hold of an EM on the client side by either injecting or looking up an EM or EMF (depending on the client type) or creating EMF (and then EM) via Persistence.createEntityMangerFactory (if neither injection, nor lookup is an option). You'll need to merge the entity to the client side EM to access the LAZY loaded fields.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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