[jboss-user] [Remoting] - Sending plain text to server without org.jboss.remoting.Clie

fmozturk do-not-reply at jboss.com
Thu Sep 21 09:17:11 EDT 2006


I like to send plain text to remoting server through socket without using org.jboss.remoting.Client object like the code below:

		java.net.Socket socket = new java.net.Socket("localhost", 5400);
		java.io.PrintWriter out = new java.io.PrintWriter(socket
				.getOutputStream(), true);
		java.io.BufferedReader in = new java.io.BufferedReader(
				new java.io.InputStreamReader(socket.getInputStream()));

		out.println("To the server");

		String fromServer = in.readLine();
		System.out.println("From server: " + fromServer);

		out.close();
		in.close();
		socket.close();

But I got "[SocketServerInvoker] Failed to accept socket connection" error. My InvokerLocator URI is "socket://localhost:5400".

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973238#3973238

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973238



More information about the jboss-user mailing list