Hi there, > What you probably need is a static "HttpClient" object in your > Servlet that does your communication. But keep in mind to > "synchronize" access to it! (I have, however, no idea whether this > can really work depending on your needs.)
Do NOT use static objects in servlets. Instead, use a non-static attribute in the servlet object. Initialize it in the Servlet.init() method and de-initialize in Servlet.destroy(). Static objects will only cause trouble in unforeseen ways. For HttpClient with MTHCM, synchronization is not required. MTHCM is thread safe. cheers, Roland
smime.p7s
Description: S/MIME Cryptographic Signature
