Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] ? the same db connection throughout many queries with one entitymanager instance in one method ?

Hi Daniel,

I think you can do what you want if you open a transaction on your EM.

Mark

On Tue, Jul 3, 2012 at 8:34 AM, Varga Daniel (KIRF 681) <daniel.varga@xxxxxxxxxxxxxxxxx> wrote:

Hello

 

We need to find a means to guarantee that the same connection is being used behind the scenes when executing a number of queries with the same entitymanager instance within one method.

 

So far we did it with pinning the connections to the thread, which is a weblogic specific feature that cannot be used in production.

 

If anyone know the best way to do it with eclipselink I’d be glad to let known.

 

Thanks a lot,

Daniel


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users



Back to the top