Agreed the server does not set the message back to the client, in the example
, and i did have a look at the java docs and the tried different methods to
sent data back to the client. I mean thats the actual question how can i
send  data back to the client?

Abdul Khaliq


Ashish-24 wrote:
> 
> On Thu, Mar 11, 2010 at 10:39 AM, Abdul Khaliq <abdul.kha...@yahoo.com>
> wrote:
>>
>> Yes i am trying to serlize the object upon the message received event in
>> the
>> Handler class like "buffer.putObject(pojoObject)", but i don't know if it
>> is
>> the right way of doing it? and how no message received event is raised on
>> the client side. Please guide me.
>>
>>   @Override
>>    public void messageReceived(IoSession session, Object message)
>>            throws Exception {
>>
>>        if (message instanceof IoBuffer) {
>>            IoBuffer buffer = (IoBuffer) message;
>>            buffer.putObject(new pojo.POJO());
>>            System.out.print("Object Attached and Sent");
>>        }
>>    }
>>
>> Abdul Khaliq
> 
> This event will be generated when your Server sends out a message to
> your client. Why don't you try to first play around with the UDP
> example first
> and then move onto your code. It will help you understand how things
> work. I don't remember but the example doesn't send back a response to
> the client?
> 
> If you object size is greator than MTU, you will receive multiple
> packets at server, and you need to handle that.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/UDP-replying-to-a-message-issue-tp27859293p27859518.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to