泰 阿 [
http://community.jboss.org/people/abcatai555] created the discussion
"How do I describe some info manual when runtimeException happened on server, so
these info manual is found on Client?"
To view the discussion, visit:
http://community.jboss.org/message/587908#587908
--------------------------------------------------------------
For example:
note: Object A include one property "msg".
Server code:
try {
Integer x = new Integer("aaa"); // NumberFormatException happened here
} catch (Exception e) {
// I want the info "hello java" to be sent to client
testInfo.setMsg("hello java");
throw e;
}
I start one request by below code:
try {
A testInfo = new A();
...
client.invoke(testInfo);
} catch (Exception e) {
// when I print testInfo.getMsg(), nothing printed ( I wish "hello java" is
printed here)
System.out.println( testInfo.getMsg() );
}
Any one give me some help? Thank you!!!
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/587908#587908]
Start a new discussion in JBoss Remoting at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]