Hi all,
We are migrating our project from ND 3.x to ND5.x. Since there is no DB timeout
in 5.0, we thought of executing the SQL on a separate parellel thread. But, when we
tried to do it, it failed in the code where ever ND framework calls are made. i.e: if
I try
to do non-ND code in the parellel thread (like reading from and writing to a file) it
works
fine. But, it fails even to put a log message through CSpLog.send().
Since ND 5 architecture w.r.t multi-threading is same in ND 4 also, I am wondering
whether any of you have tried using a parellel thread within a web event.
I did find a class spider.util.CSpThread, there was no explanation on when it should
be used. Also, there was no mention whether doRun() gets called on CSpThread.start()
According to the documentation, stopping of CSpThread execution can be done by sending
a stop signal which must be polled by the execution login, which is not very
appropriate for
us as we are trying to execute a SQL using CSpDataObject.executeImmediate() which
is not an asynchronous call.
Any suggestion or help to find the right technique is appreciated.
Thanks a lot.
- Sanjath
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]