Hi,
I'm trying to design a web server where users can login, initiate long
running processes on uploaded files, monitor the progress via a web page and
download some results when the process has finished.
My first attempt was to do the file processing in the servlet, but the
browser timed out eventually! I appreciate this is not the way to solve it!
I was wondering if there is a common mechanism for doing this sort of thing
within a Tomcat server? Are any libraries available?
Thanks for any help.
--
Regards,
Steve
"...which means he created the heaven and the earth... in the DARK! How good
is that?" 2 5181
"Steve" <ro**@127.0.0.1 > wrote in message
news:C0B0336E.B C6C%ro**@127.0. 0.1... Hi,
I'm trying to design a web server where users can login, initiate long running processes on uploaded files, monitor the progress via a web page and download some results when the process has finished.
My first attempt was to do the file processing in the servlet, but the browser timed out eventually! I appreciate this is not the way to solve it!
I was wondering if there is a common mechanism for doing this sort of thing within a Tomcat server? Are any libraries available?
Thanks for any help.
I don't know about libraries, but you'll basically need to create the
concept of a job. As soon as the user finishes uploading the file, save what
tasks need to be performed on that file, and immediately return to the an
"OK, we'll get to it as soon as possible" message to the user.
Potentially, thousands or millions of users might be uploading files at
the same time, but maybe only 1 or 2 thread is actually going around doing
whatever processing needs to be done.
Users can log in and query the status of the job. Depending on how much
detail you want, you might simply say something like "Job is done", "Job is
running" or "There are 248 jobs in queue before yours", for example.
You can optionally have a notification system (perhaps via e-mail) to
let a user know when their job is done.
- Oliver
On 12/6/06 17:44, in article oRgjg.29575$771 .28803@edtnps89 , "Oliver Wong"
<ow***@castorte ch.com> wrote: I don't know about libraries, but you'll basically need to create the concept of a job. As soon as the user finishes uploading the file, save what tasks need to be performed on that file, and immediately return to the an "OK, we'll get to it as soon as possible" message to the user.
Potentially, thousands or millions of users might be uploading files at the same time, but maybe only 1 or 2 thread is actually going around doing whatever processing needs to be done.
Users can log in and query the status of the job. Depending on how much detail you want, you might simply say something like "Job is done", "Job is running" or "There are 248 jobs in queue before yours", for example.
You can optionally have a notification system (perhaps via e-mail) to let a user know when their job is done.
Thanks very much, Oliver.
My original thinking was along these lines. I'm glad you've confirmed them -
at least I'm going in the right direction!
Its given me something to think about with jobs, job managers, queues, etc.
Thanks again.
--
Regards,
Steve
"...which means he created the heaven and the earth... in the DARK! How good
is that?" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jagdeesh |
last post by:
Hai Colleagues,
I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've
transferred a set of folders(containing jsp files) into tomcat's
webapps directory(to /webapps/bob , /webapps/sue) and i have added the
folders bob, sue in my server.xml(in the context path).
When i am trying to run jsp files from my browser, it works fine. But,
the following jsp files reports some exceptions which is quite hard to
understand. Here is...
|
by: BK |
last post by:
Can someone point me to a code sample that illustrates executing long
running tasks (asynchronous) from a web application in ASP.NET? I assume
that Web Services might come into play at some point, but I'm not sure how
to get started.
For example, I have an application that, upon a user initiating through a
button or link click, will go out and generate a bunch of files (this could
take several minutes). This will happen in batches, so I...
|
by: pb648174 |
last post by:
I have a very long transaction that runs on the same database that
other users need to use for existing data. I don't care if they see
data from the transaction before it is done and am only using the
transaction because I need a way to roll it back if any errors happen
during the transaction. Unfortunately all tables affected in the long
running transaction are completely locked and nobody else can access
any of the affected tables while...
|
by: Tim::.. |
last post by:
Can someone please tell me how I get around this???
I have an ASP.NET web application that uses an SQL 2000 database for the
majority of the web sites content... If the application comes up with an
error the process on the SQL server remains alive. How do I make sure that
the process is killed on the SQL server even if there is an error???
I guess you use "TRY" but am new to asp.net programming and would appritiate
any examples or...
|
by: Tony |
last post by:
Hi all,
I have a DB2 8.2(fk14) running on Solaris 9 server. Once the DB2
working, I can see more than 30 DB2 processes(db2sysc) running at the
same time. Is that normal?
Thanks.
| |
by: systemania.com |
last post by:
We have 3 contract positions open in Herndon Virginia for 3 JAVA/J2EE
Developers.
The contracts are Long Term (1 year ++). The rate is $45/h negotiable based
on experience.
To apply for this position please email your resume to
consulting@systemania.com.
*** US CITIZEN ONLY PLEASE ****
Key Skills:
|
by: walterbyrd |
last post by:
I understand that Python has them, but PHP doesn't.
I think that is because mod_php is built into apache, but mod_python
is not usually in apache. If mod_python was built into apache, would
python still have long running processes (LRP)?
Do LRPs have to do with a Python interpreter running all the time? Or
is it something else?
I also understand that LRPs are the reason that shared hosting is less
|
by: commander_coder |
last post by:
Hello,
I write a lot of CGI scripts, in Python of course. Now I need to
convert some to long-running processes. I'm having trouble finding
resources about the best practices to do that.
I've found a lot of email discussions that say something like, "You
need to educate yourself about the differences when you have long-
running processes" but I've not had a lot of luck with finding things
that explain the differences. I've seen some...
|
by: shaileshkumar |
last post by:
hi,
iam unable to run my applications in netbeans4.1.
problem may be due to JVM or port numbers conflict.
i did not intentionally change any port numbers .
please guide me accordingly.
iam pasting the error report ( thanks in advance)
-------------------------------------------------------------------------
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |