Not in a single request.  CF is multithreaded, but only at the request
level.  Each request gets a single thread for all it's execution.  Certain
tags circumvent this (such as by specifying a timeout of zero on CFEXECUTE),
but they're really severing themselves from the request thread, not just
executing simultaneously.

If you really want to multithread a request, I think you'll have to drop
down into Java and do it that way.  Of course, you'll lose all the
simplicity of CF if you do that.

Cheers,
barneyb

> -----Original Message-----
> From: Troy Simpson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 3:36 PM
> To: CF-Talk
> Subject: Re: How would I do this?
>
> Oh, one other thing.
>
> How could I submit several requests to various back-end
> systems (RDBMS,
> IMAP, HTTP, etc. ) simultaneously.
>
> For example, I want to execute the following request simultaneously.
> All requests are independent of others.  So I do not have to wait for
> one come back before processing the next on.
> 1. query on RDBMS_1,
> 2. run another query on RDBMS_2,
> 3. request an http page from a web server,
> 4. query an LDAP server.
>
> It does not matter which process comes back first/last.  It does not
> matter if one of them fails.
>
> I did not want to execute them procedurally.  If they do excute
> procedurally, then I would have to wait for a prior request
> to complete
> before moving own to the next request.
>
> Can ColdFusion do this?
>
> Thanks,
> Troy
>
> Troy Simpson wrote:
> > Hello all,
> >
> > I am using ColdFusionMX on Solaris8/9
> >
> > I need to query some resources that do not respond in a
> timely manner
> > and as a fix, I can not cache the data.
> >
> > So what I would like to do is submit the request(queryies) to the
> > various backend systems, then respond to the user with
> something like
> >
> > "Preparing results.  One moment please..."
> >
> > Then I would like to auto-submit the page about every 1 to
> 2 seconds to
> > determine what responses have been fullfilled and update
> the client with
> > a status of which requests have been completed and which
> requests are
> > still working.
> >
> > Is this possible with CFMX?
> >
> > I would presume this would require some multi-threading, etc.
> >
> > Thanks for you help.
> >
> > --
> > Troy Simpson
> >    Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
> > North Carolina State University Libraries
> > Campus Box 7111 | Raleigh | North Carolina
> > ph.919.515.3855 | fax.919.513.3330
> > E-mail: [EMAIL PROTECTED]
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to