Non-Netty object client against Netty Object Server
"이희승 (Trustin Lee)"
trustin at gmail.com
Tue May 17 01:22:45 EDT 2011
Traditional Java object streams do not work with non-blocking I/O
unfortunately. You have to use the extension of
ObjectInput/OutputStream provided by Netty:
http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/codec/serialization/package-summary.html
HTH,
Trustin
On Thu 03 Mar 2011 01:46:44 AM KST, amonty wrote:
> Hi,
>
> I'm new to netty and a rookie with sockets.
>
> My first development is a server based on the "ObjectEchoServer", anda
> socket oio client that already exists.
>
> When trying to use the client against the ObjectEchoServer, it halts in the
> market line:
>
> import java.io.ObjectInputStream;
> import java.io.ObjectOutputStream;
> import java.net.Socket;
>
> Socket socket = new Socket(server, port);
> ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
> InputStream is = socket.getInputStream();
> -> ObjectInputStream ois = new ObjectInputStream(is);<-- halted
>
>
> Could you help to know what is the problem?
>
> Regards,
> Monty
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Non-Netty-object-client-against-Netty-Object-Server-tp6081697p6081697.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
More information about the netty-users
mailing list