aspose file tools*
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
JavaRanch » Java Forums » Java » Performance
Bookmark "HttpSession duration increment during transaction" Watch "HttpSession duration increment during transaction" New topic
Author

HttpSession duration increment during transaction

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1277

Hello,

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.

Thanks


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

Joined: Jan 10, 2002
Posts: 61413
    
  67

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

Thanks Bear
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSession duration increment during transaction