dear all, I end up using seam remoting method. The following is an example of what i did. Cheers.
java -cp . Reverse http://localhost:8080/seam-helloworld/seam/remoting/execute "<call component=\"helloAction\" method=\"sayHello\" id=\"0\">hjhj" Reverse class: ========== import java.io.*; import java.net.*; public class Reverse { public static void main(String[] args) throws Exception { if (args.length != 2) { System.err.println("Usage: java Reverse " + "http://<location of your servlet/script>" + " string_to_reverse"); System.exit(1); } String stringToReverse = args[1]; URL url = new URL(args[0]); URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.setRequestProperty("Content-Type","text/xml"); connection.setDoInput(true); OutputStreamWriter out = new OutputStreamWriter( connection.getOutputStream()); out.write(stringToReverse); out.close(); BufferedReader in = new BufferedReader( new InputStreamReader( connection.getInputStream())); String decodedString; while ((decodedString = in.readLine()) != null) { System.out.println(decodedString); } in.close(); } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971583#3971583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971583 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
