openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Håkon Sagehaug" <>
Subject Where to initialize the entitymanger factory
Date Tue, 11 Nov 2008 16:09:56 GMT

I'm using openjpa in some web service, ant let's say I've got three
operation that needs a EntityManager from the factory.
One solution is to create a new EntitymanagerFactory in each method and then
close it when the method ends, but maybe a better solution to have a static
initialize for the web service, but not sure how this will be with different
instances for the web service

Any tips on this?

Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)

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