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 Ashish-24 wrote: > > On Thu, Mar 11, 2010 at 10:18 AM, abdul khaliq <abdul.kha...@yahoo.com> > wrote: >> Hi, >> >> I am using one of the examples that u have provided on >> >> http://svn.apache.org/viewvc/mina/tags/2.0.0-M3/example/src/main/java/org/apache/mina/example/udp/ >> >> >> What i need is to sent a pojo from server to client. Please help me how >> can i handle this? Also how can i raise event on the client side upon >> message received just as it is on the server side in the provided >> example. > > Are you planning to use Object serialization for sending the data? > Your client IoHandler messageReceived() shall be called, whenever a > message is received. Raise en event from there. > > -- > thanks > ashish > > Blog: http://www.ashishpaliwal.com/blog > My Photo Galleries: http://www.pbase.com/ashishpaliwal > > -- View this message in context: http://old.nabble.com/UDP-replying-to-a-message-issue-tp27859293p27859383.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.