users@glassfish.java.net

Re: Singleton EJB with persistence context

From: <forums_at_java.net>
Date: Thu, 22 Dec 2011 02:29:45 -0600 (CST)

Hello Marina,

Thanks a lot for your reply.

The use of "merge()" didn't managed the object when we tried it ; we'll retry
it.

In singleton EJB do we really need to close EM ? I mean, there's only one
instance and always available, so I think we should'nt close the
EM. Moreover, is PreDestroy called in such case ?

I still don't understand why when using injection we can't manage objects.

Olivier.


--
[Message sent by forum member 'laps']
View Post: http://forums.java.net/node/874435