iText is thread safe as long as not more than one thread at a time writes to the same document but you can have any number of concurrent threads each one writing to a different document.
Best Regards, Paulo Soares > -----Original Message----- > From: Aaron Kelley [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 23:33 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Creating PDFs through servlet > > I have been using iText for some time now to create PDF through a servlet. > Some users have complained that some documents are not being created > correctly. I verified that one document in particular was missing a page > in the middle. Originally the servlet had fields to handle creating PDFs, > but I soon realized that without synchronization the documents would be > created incorrectly if two people hit the servlet at once (since the > fields are shared). I changed my servlet so there are no fields and I am > using another class built within a servlet method to generate PDFs. There > still seems to be a problem some times (the case of a PDF missing a page) > and I think this may have to do with a threading issue. Are the iText > classes safe to use like this? That is, are there static fields somewhere > that may be trampled if several calls are made at once? The code works > perfectly for me. The only time I ever notice anything is when it is > deployed to a higher volume site. Any ideas would be appreciated. > > > > Aaron Kelley | Software Developer > Tyler Technologies | Eagle Division > > > > Phone: 303.683.3979 > > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > > ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
