aspose file tools*
The moose likes Servlets and the fly likes servlet thread safe when sending large file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet thread safe when sending large file" Watch "servlet thread safe when sending large file" New topic
Author

servlet thread safe when sending large file

jawa lal
Ranch Hand

Joined: Jul 12, 2001
Posts: 38
i have servlet which gets large data files , depending on request to the client, while this be thread safe, how to make it thread safe other than using SingleThread interface


JAWA<br />(Jawahar Lal)
ersin eser
Ranch Hand

Joined: Feb 22, 2001
Posts: 1072
Sorry but I did not understand your question...
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Just like all servlets, the rule is you must use only local variables to be Thread safe. The amount of time the transaction takes doesn't matter. I would worry more about access to the file by other Threads.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet thread safe when sending large file