Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to keep HTTP Session alive (while big file processing)

tahirakramDec 2 2008 — edited Dec 3 2008
Hello All;

I want to ask you how can I make my HTTP session to avoid to time out if my browser is busy in the request processing of a very large file.

Requirement: I have a jsp where user is allowed to give a very large file for processing. And there are chances that while user will be waiting for processing its request the session will time out.

So what I want to do is to throw asynchronous calls from the my Java code to browser (after lets say every 10 minutes). If processing ends up I will stop this "pushing" to client browser .

Is my solution is right to keep session alive? and how can I achieve this? I need an idea to implement it. Or if you have another idea about it, please share with me.

I hope my problem is plane easy to understand.

Thanks in advance.

-- Tahir
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2008
Added on Dec 2 2008
3 comments
1,052 views