We implement something like this.
We have a really heavy process submitted by a user, so we don't want him
to wait for finishing.
In a struts action, we call a Service (POJO) and this service places a
message in a JMS and saves a record of the process in a database table
in a running state. Then
If it's unix that you are running on you could run a command using
nohup , the java orthodox way
is to use a message driven bean/jms if you are running inside an
applicaion server such as JBoss.
--B
atta-ur rehman wrote:
Hello Robert,
As far as I know Struts doen't provide anything like
Hello Robert,
As far as I know Struts doen't provide anything like this. And actually it
should not!
You'd use Thread class to implement such a task that needs to return
immediately while running in the background.
Hope this helps.
ATTA
- Original Message -
From: Wei, Robert
: Monday, May 03, 2004 8:21 PM
To: Struts Users Mailing List
Subject: Re: background process
If it's unix that you are running on you could run a command using
nohup , the java orthodox way
is to use a message driven bean/jms if you are running inside an
applicaion server such as JBoss.
--B
atta
4 matches
Mail list logo