Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Sockets, XML and messages being interleaved !!!


Message #1 by "Wali Akthar" <wakthar@p...> on Fri, 20 Jul 2001 17:37:28
Is the server multi-threaded?

-----Original Message-----
From: Wali Akthar [mailto:wakthar@p...]
Sent: Friday, July 20, 2001 5:37 PM
To: Java Server
Subject: [pro_java_server] Sockets, XML and messages being interleaved
!!!


Hi,

I have a problem of interleaving XML messages in a socket.
The problem revolves around sending a client command being issued through
sockets to a server program which then bundles the answer back as an XML
data stream back through sockets.
Now if a user issues one command say X and then straight away another
command called Y, the server tries answering the first command but the
response contains many X responses so response Y gets interleaved in
between responses X.
All responses are in XML format.

Is there any known ways to overcome this problem or can anyone help me out
please !!!

Help greatfully appreciated !!!

  Return to Index