Beginner |
|
Joined: Mon Aug 22, 2005 1:22 am Posts: 36
|
We are currently using the session per request pattern for our webapp.
However, in one of our use cases, we have a user upload a large file to be processed in real-time. We would like to use the StatelessSession instead of the Session for this use case.
My questions are:
1) Are there any ramifications to concurrently using Session and Stateless session?
2) Any special processing that needs to occur when using both?
3) Should we mimic the ThreadLocal impl in HibernateUtil to handle StatelessSession? or should we just call SessionFactory.getStatelessionSession() directory in the controlling method call?
Any other words of wisdoms or tips would be greatly appreciated.
Thanks in advance.
- Doug
|
|