----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

    Thanks for you kind response.

    I have a small (!!) doubt. Please help me out.

    Whether "synchronization" should be done at the DLL or
    at the servlet ?

regards,
Rajani.

Jon Smirl wrote:

> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Servlets are multithreaded. The thread that you use to first load the DLL
> may not be the same thread that later calls it. If your DLL is not
> multithreaded you must protect it with a synchronize. There needs to be a
> single synchronize for the whole DLL, just adding synchronize to each method
> will allow a single thread into each of the methods at once.
>
> It is somewhat complicated debugging DLL use from servlets. You will find
> this very difficult to do without running a debugger. MS Visual J++ used
> with Visual C will allow you to debug DLL's.
>
> Jon Smirl
> [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to