Here what actually happens
UDP client UDP Server
1.The server starts
and no events are generated
2. generates Session created event
3. generates Session opened event
4. sends the data to server
5. generates Session
created event
6. generates Session
opened event
7. generated the message
received event
some strange things as soon as i stop the server the message receive event
is generated on the client. else the session closed event is generated
automatically and no message received event is generated.
Abdul Khaliq
Abdul Khaliq wrote:
>
> OK I tried the session.write(..) method but the client was unable to
> receive the message.
>
>
> Ashish-24 wrote:
>>
>> On Thu, Mar 11, 2010 at 11:03 AM, Abdul Khaliq <[email protected]>
>> wrote:
>>>
>>> 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?
>>>
>>
>> in messageReceived call session.write(...some data);
>>
>> I recommend that you explore other examples as well. There should be a
>> Object based codec as well
>>
>> check this list http://mina.apache.org/codec-repository.html
>>
>>
>
>
--
View this message in context:
http://old.nabble.com/UDP-replying-to-a-message-issue-tp27859293p27860079.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.