Hi all.. I have a server Pgm which spawns a thread as a client connection comes up. The server thread and client module interacts only thru SOCKETS.. Is there any possibility of throwing an exception from thread.run()which is at the server end to the client pgm ??? Thanks Preetham.
posted 14 years ago
Hi, You could get the output stream to the client socket and in the catch clause insert a "outputStreamOfClientSocket.write(exception.printStackTrace()); Simple eh? ------------------ Nitin S Sun Certified and Tekmetrics Certified Java Programmer For the Java 2 Platform.
Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.