I created a function in clientSessionHandler to receive the updated data.
and I use the session in clientSessionHandler to write it. but when I call
this function in my class several times like this:
 ClientSessionHandler j = new ClientSessionHandler(obj);
try {
        while (true){
        j.reciveDataFromClient(this.id, this.salary);
        Thread.sleep(1000, 5);}
    } catch(InterruptedException ie) {}
the client does not work. But when I call it without repeat like this, it
is work!
ClientSessionHandler j = new ClientSessionHandler(obj);
  j.reciveDataFromClient(this.id, this.salary);
**************************************************************
Another question is, what about decoder? How can I decode these message
while all of them comes in IoBuffer  ? how can I specify which message is
the initial data and which is the updated data?

Reply via email to