users@glassfish.java.net

Re: em.flush() doesn't work

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 May 2009 06:00:50 PDT

And I believe that's why the findBy methods are provided - they should work even before the commit, but of course they're only available inside the EJBs themselves.

Where are you doing the SELECT?
From outside the EJBs? If so, why would you expect the changes to be visible before they're committed?
From inside the EJBs? Don't do that! Use the findBy methods like you're supposed to.
[Message sent by forum member 'matterbury' (matterbury)]

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