Hello,

sorry, a dumb question:

do I need a ObjectContext per thread or per app?

In fact I wrote a spring bean (its a singleton) which creates one
single ObjectContext for all my app. In other terms, multiple threads
will use it to insert, read, commit etc.
Since ObjectContext offers the commit method, I am now doubting if
this was correct. I feel it might be good to have an ObjectContext for
each thread/user. Or does the ObjectContext know what happened as one
transaction?

Can you advise?

Thanks
Christian

-- 
http://www.grobmeier.de

Reply via email to