Re: socket connection within servlet to the same container

2006-11-14 Thread Dmitry Kandalov
Christopher Schultz-2 wrote: > > Try calling "flush" on your output stream, and possibly even closing it > if you have to. > > Any reason not to use java.net.URLConnection for this? > No, reason. It was just very simple and sockets seemed to be appropriate. -- View this message in context:

Re: socket connection within servlet to the same container

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry, Dmitry Kandalov wrote: > Say I have code like this: > [snip] > socket = new Socket( request.getLocalAddr(), request.getLocalPort() > ); > socket.getOutputStream().write( requestString.getBytes( "ISO-8859-1" > ) ); > soc