Jake,

This is the way I previously dealt with this kind of situation:
- On the controller action method spawn another thread and do the report 
generation there (see note about this)  or if you have the 
resources, do it out of iis process.
- Tell the user that the report is being generated (wait 10min blah blah ...) 
and maybe provice a url to the user to retrieve the report or email the user 
the url once report has been created.
- If the report is not user specific, provide a page with a list of 
generated reports.

Regarding spawn another thread in iis process, be aware that when an iis app 
pool refresh occurs, spawn threads are aborted and it could leave your 
report generation in an unknown state hence the reason to do it out of 
iis process.

Let me know if you need more details.

Cheers
John



________________________________
From: jake <[email protected]>
To: Castle Project Users <[email protected]>
Sent: Tue, 4 May, 2010 10:20:17 AM
Subject: Job processing with monorail

I have a page that generates a PDF report and serves it in the
response.  Overtime, the report has gotten more and more complex to
the point that it sometimes takes a while to generate.  I'd like to
create a job processing class that I can use so that when users kick
off the process I can just tell them to check back in 5 mins when it's
ready.  It's inevitable that the report will start timing out because
of the amount of content the customer wants.  What would be the best
way to tackle this, using Monorail of course?  I'd like to keep all
the code in the web app if I could.

Thanks,
Jake

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.


      

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to