users@jersey.java.net

Re: [Jersey] Jersey and JPA best practices?

From: Florian Hars <hars_at_bik-gmbh.de>
Date: Tue, 06 Jan 2009 12:11:26 +0100

Paul Sandoz schrieb:
>> The answers are all implicit in the bookmarks example, but it might help
>> people if they are written down with some short explanations.
>
> I admit to being a little vague about this because it uses some annoying
> workarounds in the web.xml and what we really need for developers is
> proper EE integration.

One other thing I noticed in the bookmarks example:
You get the EntityManager from the factory, so it is a non-managed EM.
Shouldn't you close this EM when you are done with it?
And how does this mix with lazy loading and rendering a Viewable?

- Florian.