From: dlsa <nu...@jb...> - 2005-04-27 16:04:54
|
On the implementation of a ServerInvocationHandler.invoke method : public Object invoke(InvocationRequest request) throws Throwable { try { myObject.doSomething(); } catch (Exception e) { throw new MyException(e.getMessage()); } } On the client: ... InvokerLocator locator = new InvokerLocator(url); Client aClient = new Client(locator); aClient.connect(); ... try { aClient.invoke("argument to doSomething"); } catch (MyException e) { e.printStackTrace(); } ... The exception MyException is thrown on the server and is caught on the client. It is propagated through the network by the remoting framework. Hope it carified. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875615#3875615 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875615 |