One of the nice things about running your app in an AppServer as opposed to plain 
CGI/PHP
is that you can easily spawn a new thread to handle jobs like this.

An interesting way is to launch a new thread and pass the session to this new process.
Then the new job wrote a staus code to the session.

Initially I then ran a loop on that page and  'flushed' some output to let the user 
know
we were still alive.  But later on I could have every page check the status and report 
on
it.  So in an intranet portal setting there is a box that displays 'current job 
status'.
When the job is done it will provide a link to view the results.  Stuff like this
justifies the the pain of another App Server IMHO.

Thanks,
-Aaron


----- Original Message -----
From: "Hancock, David (DHANCOCK)" <[EMAIL PROTECTED]>
To: "'Rolf Hanson'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 8:10 AM
Subject: RE: [Webware-discuss] streaming .psp output?


> I've never done this in Webware, but you should be able to do what you want
> with some combination of:
>
>   - something in wmail.sendMessage to write to the browser
>   - something after each call to wmail.sendMessage
>   - flushing stdout (or whatever the response.write method is writing to)
>
> I doubt that it applies here, but one thing I learned about how browsers
> render is that if you're building a table, there's NO rendered output until
> the </table> tag.  So if you're building a long table but want it to show up
> incrementally, you need to start and end the table often.
>
> Take any or all of this with a grain of salt--I'm no expert.
>
> Cheers!
> --
> David Hancock | [EMAIL PROTECTED] | 410-266-4384
>
>
> -----Original Message-----
> From: Rolf Hanson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 19, 2002 9:18 PM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] streaming .psp output?
>
>
> Is it possible to stream the output of a psp page?
>
> I have a page which sends email to a variable number of users.
> like:
>
> <% for user_id in user_ids : {%> <%=wmail.sendMessage(user_id,message)%>
> <%}%>
>
> sendMessage() returns a string that describes if the mail was a success
> or error.
>
> Right now, the page does not render until the for loop has completed.
> I'd like to stream the results of the mailing to the user who is using
> the system.
>
> Thanks,
>
> Rolf
>
>
> _______________________________________________________________
> Hundreds of nodes, one monster rendering program.
> Now that's a super model! Visit http://clustering.foundries.sf.net/
>
> _______________________________________________
> Webware-discuss mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>
> _______________________________________________________________
> Hundreds of nodes, one monster rendering program.
> Now that's a super model! Visit http://clustering.foundries.sf.net/
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>


_______________________________________________________________
Hundreds of nodes, one monster rendering program.
Now that's a super model! Visit http://clustering.foundries.sf.net/

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to