Store Running Threads information

Hi!I have a multithread web application and i would like to know where can i Store current threads information . This information should be accesible even if I close the browser and I open it again with another sessionWhat do you suggest to do this?ThanksT.
[292 byte] By [tlloretia] at [2007-11-26 12:20:44]
# 1

What do you mean by current thread information.

Servers may handle requests in different threads even if the requests belong to same session. You dont have much control over it.

From the information that you have given it seems you need to implement sesions independant of the containers session. In that case you can implement your own session and put the session ids as cookies in the client with longer cookie TTL value

LRMKa at 2007-7-7 15:11:19 > top of Java-index,Archived Forums,Socket Programming...
# 2

Thanks for your answer

The threads I want to monitor are the ones I will create to perform some huge downloads from external web databases. I would like to know at any moment which is the progress of the downloading process. Even if I close the browser and reopen it

Which is the best way to do this?

Thanks again

T.

tlloretia at 2007-7-7 15:11:19 > top of Java-index,Archived Forums,Socket Programming...
# 3

Sorry for late reply

I think MDBs (Message Driven Beans) are the best way to implement your requirement. You can write a Message Bean to do the download and regulerly store the progress information in another database table.

You can develop another page to view the progress of the processes based on the inforation stored on that table.

LRMKa at 2007-7-7 15:11:19 > top of Java-index,Archived Forums,Socket Programming...
# 4
Why dont you store the information in application context?
x4444a at 2007-7-7 15:11:19 > top of Java-index,Archived Forums,Socket Programming...
# 5
I dont think you can use application context for this becouse it is shared by all the user session in the application.
LRMKa at 2007-7-7 15:11:19 > top of Java-index,Archived Forums,Socket Programming...