webtier@glassfish.java.net

Re: [webtier] utx.commit() and em.flush()

From: <webtier_at_javadesktop.org>
Date: Tue, 14 Jul 2009 11:01:04 PDT

Thanks.

The examples in the tutorial are a little bit misleading. Their servlets also miss the [i]em.flush()[/i] call. No updates are made to the underlying database table, either.
Adding [i]em.flush()[/i] fixes the problem.
[Message sent by forum member 'dziku' (dziku)]

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