You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Lucas, Mike" <Mi...@gwl.ca> on 2014/09/11 17:00:59 UTC
thread-safety of Session
A very quick question... Is the Session instance that gets returned by SessionFactoryImpl.newInstance().createSession() thread-safe? i.e. can I cache it and use the same instance to service multiple simultaneous requests?
Thanks!
michael lucas | Senior Software Developer | Great-West Life
Re: thread-safety of Session
Posted by Florian Müller <fm...@apache.org>.
Hi Mike,
Yes, the Session instance is tread-safe.
- Florian
>
> A very quick question... Is the Session instance that gets returned by
> SessionFactoryImpl.newInstance().createSession() thread-safe? i.e. can I cache
> it and use the same instance to service multiple simultaneous requests?
>
> Thanks!
> michael lucas | Senior Software Developer | Great-West Life
>