[英]does Hibernate work with akka actor?
my main concern is on ThreadLocal
. 我主要关心的是
ThreadLocal
。 akka actors don't bind to specific thread, so any use of thread local storage will be problematic on akka actors akka actors不绑定到特定的线程,因此任何使用线程本地存储都会对akka actor产生问题
does Hibernate use ThreadLocal
? Hibernate使用
ThreadLocal
吗?
can they coexist in this case? 他们可以在这种情况下共存吗?
Yes. 是。 I use Hibernate (via the JPA interface) together with Akka actors.
我使用Hibernate(通过JPA接口)和Akka actor。
I have two approaches to deal with multi-threading: 我有两种方法来处理多线程:
I have the first approach running in production systems. 我有第一种方法在生产系统中运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.