John wrote:
[snip]
> public class GetSecret {
>   public static void main(String Argv[]) {
>
>     URLConnection uc = null;
>     BufferedReader in = null;
>     PrintWriter out = null;
>     URL u = null;
>     boolean success;
...[snip]
        I am tempted to try this out myself, but I think I see what the problem
might be.  Your variables are all in the main() method, which is
decalred static.  The static-ness, combined with the servlet model of
one servlet serving all requests would seem to introduce concurrency
problems on your streams.  Try using objects that use only non-static
method variables to see if you can cut that out.  That would make a lot
more sense than trying to synchronize access to the static method...

        Let me know if this turns out to be the case, if you would...

--
Within C++ is a smaller, cleaner language
struggling to get out.
It's called Java.

Thomas Moore
[EMAIL PROTECTED]        Home Account
Software.Engineer         [EMAIL PROTECTED]
phone://732.462.1880:268  NJ Patterns Group Home Page
employer://Celwave, RF    http://members.home.net/twmoore/cjpg

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to