-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: concurrent StatelessSession and Session usage in a webapp?
PostPosted: Thu Feb 21, 2008 1:53 pm 
Beginner
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.