Kdepak, to bohužel neděláme. Každé vlákno volá metodu, ve které je zhruba toto:

    HttpURLConnection lo_connection = (HttpURLConnection) fo_url.openConnection ();

// nastav connection ..................

    ByteArrayOutputStream lo_buf = new ByteArrayOutputStream ();

// napln buffer ..................

        bigLog.info ("Posilam stream: [\n" + lo_buf.toString () + "\n]");  // tady to pomichane neni

        OutputStream lo_out = lo_connection.getOutputStream ();
        lo_out.write (lo_buf.toByteArray ());
        lo_out.close ();

Katka

Odpovedet emailem