Marcelo Ametller wrote:
I have a servlet with form and a button label “import”
the action for the 'button' is a function that takes a file .txt and
enters it, into a postgresql/table.

I need that this function goes off from the button, at the browser, but
as it consumes many resources (memory,threads), that the fall of
appserver does not cause.

Span a completely separate process. You can store the pid of the process in your session so servlets can check whether the process is still running. The process could also signal "done" by creating a certain file or writing something to the database.

Process management is described in section 6.1.5 of the Python standard lib docs.

-- Christoph


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to