The HTTP and Servelt transport invoker does't throw exeption that declarated on
remote method, that only throw some connection exception.
But if change source code,It will be work.
1. comment line isError = true; in ServletServerInvoker class,method
processRequest in try block on remote invocation.
2. In HTTPClientInvoker class to the end of method useHttpURLConnection
add folowing code:
if(result instanceof Throwable){
| throw new RuntimeException("server
error",((Throwable)result));
| }
In thise case you may catch you Exception, thar was declareted.
Ideal ServletServerInvoker must try catch exception that declareted for remote
method,and translate it.
Why in current implementation remoting this does't support?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939193#3939193
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939193
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user