hi marvin, @transaction-context: yes (the TransactionalInterceptor starts/stops the context automatically)
@request-context: yes - if it is a managed thread. in case of an unmanaged thread you have to start/stop the context correctly via ContextControl (per worker-thread). regards, gerhard http://www.irian.at Your JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces, DeltaSpike and OpenWebBeans 2015-07-13 16:19 GMT+02:00 MarvinToll <[email protected]>: > Gerhard, > > Can I safely presume an elaboration of your message would be "Worker Thread > Local"? [As opposed to Main ThreadLocal] > > _Marvin > > > hi marvin, > > when it comes to concurrency both are similar. > the request- as well as the transaction-context store instances in a > ThreadLocal variable/storage. > > regards, > gerhard > > > > > > > -- > View this message in context: > http://apache-deltaspike-incubator-discussions.2316169.n4.nabble.com/Scope-of-Entity-Manager-tp4661043p4661055.html > Sent from the Apache DeltaSpike Incubator Discussions mailing list archive > at Nabble.com. >
