my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 1270


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: 60741

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: 1270

Thanks Bear
It is sorta covered in the JavaRanch Style Guide.
subject: HttpSession duration increment during transaction
Similar Threads
availability of objects
How is transaction Timeout is calculated?
Important Query about nested transaction in EJB
Hobernate - Session-per-conversation pattern with Extended Session
setSessionContext method