File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes HttpSession duration increment during transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "HttpSession duration increment during transaction" Watch "HttpSession duration increment during transaction" New topic

HttpSession duration increment during transaction

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268


If I am doing a big time consuming transaction(transaction of million/billion records), for which completion time is not fix. Now during this period my session got expired, which put me out of it, without completion of successful transaction.

Now I am looking for a solution which keep track of this transaction time and also at the same time update session expiry limit.


No Kaustubh No Fun, Know Kaustubh Know Fun..
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60041

Personally, I would delegate the long process to another thread or even another process that could care less about the session. Record the job and its progress/completion status in the database, and give the user a page to go to that displays that status. That way they can be off doing other stuff, even go to lunch, and come back later to check how things are going.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1268

Thanks Bear
I agree. Here's the link:
subject: HttpSession duration increment during transaction
Similar Threads
Important Query about nested transaction in EJB
How is transaction Timeout is calculated?
setSessionContext method
Hobernate - Session-per-conversation pattern with Extended Session
availability of objects