users@glassfish.java.net

Re: obtaining entity manager in entity

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Sep 2007 08:19:21 PDT

Assuming the class making the persist call is a pojo, then i think the only way is to do a lookup for an entity manage and use that to persist your entity. Alternatively, pass it to a SB to do the persist...

Whenever i've come across a similar problem, i've restructed my project as there are usually more difficulties ahead..

Hope that helps.
[Message sent by forum member 'jsl123' (jsl123)]

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