Message Server
Detect a socket connection from the client
Delegate the reading of the socket and the placement of the message into the appropriate queue to the Queue Manager
Free up the receiving port (the Java network API reassigns the port to an available port)
Queue Manager
Reads from the socket to obtain the complete message from the client
Builds a Message object using the byte stream passed by the client
Inspects the object to discover the messageId
, queueName
,
and the command
PUT Command : Place the message on the queue
using the queueName
specified by the client
GET command : Client to request message retrieval
DEL command : Remove all messages from the queue
Take action based on command specified in the message