Thank you Kazuhito for the code. I am looking at the possibility of not having
to create another thread. i.e. return a response back to the browser but carry
on processing. This would mean no actual creation of threads in the code. I will
hopefully be able to give an example by the end of the week (if it works).
Vincent, I dont think there are limitations with creating threads in a Servlet
container, however it is against the spec to do so from within an EJB container.
Cheers Dave
"Vincent Massol" <[EMAIL PROTECTED]>
06/02/2004 14:57
From
On
Please respond to "Cactus Users List" <[EMAIL PROTECTED]>
To "'Cactus Users List'" <[EMAIL PROTECTED]>
cc (bcc: DSEARLE/R&SA/NZ)
Subject RE: Browser/Web Server timeout when accessing ServletTestRunner for
long tests
Hi Kazuhito,
That looks cool thanks. Are you sure this is not causing any trouble in
any servlet container? I'm asking because I'm not sure the spec allows
creating threads. I know it works in some cases (I also tried this a few
years back) but I'd like to know the limitations of creating a thread in
a servlet container.
Dave, what do you think?
Thanks
-Vincent
> -----Original Message-----
> From: Kazuhito SUGURI [mailto:[EMAIL PROTECTED]
> Sent: 05 February 2004 12:52
> To: [EMAIL PROTECTED]
> Subject: Re: Browser/Web Server timeout when accessing
ServletTestRunner
> for long tests
>
> Hi Vincent and Dave,
>
> Sorry, I had take mistake.
>
> In article <[EMAIL PROTECTED]>,
> Tue, 3 Feb 2004 16:30:47 +1200,
> [EMAIL PROTECTED] wrote:
> dsearle> 2 Modify Servlet Test Runner (or create a new runner) that
can
> run in a
> dsearle> asynchronous mode.
> dsearle> This would involve spawning a thread to run the actual test
and
> storing the
> dsearle> TestResult somewhere (e.g. ServletContext) with an ID.
> dsearle> The browser could then reload the page (automatically if
> required) with an ID
> dsearle> for the TestResult. My only concern with this approach is any
> threading issues?
>
> I wrote such kind of Servlet Test Runner before, and find it.
> I don't use this Servlet Test Runner because I decided to not use
browser
> interface. So, the classes are not maintaind for a long time.
> However, I think this is good enough for the stat point.
>
> Regards,
> ----
> Kazuhito SUGURI
> mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************************
The following message has been automatically added by the Internet mail
gateway to comply with a Promina Group Services Limited IT Security
requirement.
"This e-mail has arrived via the Internet and, therefore you should be
cautious about its origin and content. Replies which contain sensitive
information or legal/contractual obligations are particularly vulnerable.
In these cases you should not reply unless you are authorised to do so,
and adequate encryption is employed."
If you have any questions, please contact [EMAIL PROTECTED]
or the Helpdesk on 09 357 2383
****************************************************************************
**********************************************************************
CAUTION - This message is intended for the addressee named above. It
may contain privileged or confidential information. If you are not the
intended recipient of this message you must not use, copy, distribute
or disclose it to anyone.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]