RE: Recommendations Wanted For SAP PI/WebMethods/EIM/HTML Opportunities
Any Boday can explain me how to make servlet as a thred safe?:)
Re: Recommendations Wanted For SAP PI/WebMethods/EIM/HTML Opportunities
you can make your servlet thread safe by wrapping up the fields, that users will have access to and make changes to their values, by synchronized blocks. however you need to take extra care when synchronizing your code by checking the object lock is available for the next object when the previous has done with it. you might want to follow the execution codes line by line and provide a mechanism (a way of checking your code) to avoid dead locking. do not count on the page directive isThreadSafe = "true" as it has shown that it fails to satisfy the multi-threading needs.