openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Stultz <da...@6degrees.com>
Subject Re: Locking Exception after Persisting new entity
Date Thu, 12 Nov 2009 16:40:15 GMT
On Thu, Nov 12, 2009 at 11:26 AM, Cil-Gamir <hannes.visagie@rmb.co.za>wrote:

>    @Override
>    public EntityManager getEntityManager() {
>        if (entityManager == null) {
>            log.info("creating entitymanager");
>            entityManager =
>
> Persistence.createEntityManagerFactory("risk-rating-data-engine").createEntityManager();
>        }
>        return entityManager;
>    }
>
>
I see where you are creating your entity manager. Where do you close it?

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:daryl@6degrees.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message