Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

individual instance information - Long Running Process  RSS feed

 
kram inagip
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
g'day guys,

I have a Java app that has a servlet front end.
Within the app i have a long process that i am retrieving percentage information (within a while loop).

http://simple.souther.us/not-so-simple.html -> Long Running Process, is basically what i am doing at the moment.
But if you run two version at the same time, both pages end up with the same information (percentage info jumps between where the two processes are up to).

What I'm chasing is a way of making this work with each visitor/instance getting individual information/feedback
How can i get the % info out of the while loop and into a JSP or servlet so the the user knows where they are up to.
Eventually i will have milestone class or servlet, for where each process is up to and this information will be fed back to the user.

I hope that this makes sense.

enjoiMark


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!