This content has been marked as final.
Show 3 replies
-
1. Re: RemoteHome returns strange Object
pvanonselen Feb 4, 2005 12:52 AM (in response to pvanonselen)Solution is to use java.lang.reflect.Proxy like this:
Proxy element = (Proxy) iter.next(); InvocationHandler handler = Proxy.getInvocationHandler(element); CreditorBean bean = (CreditorBean) Proxy.newProxyInstance(CreditorBean.class.getClassLoader(), new Class[] { CreditorBean.class }, handler);
Any reason why I need to do this?
Other examples do not show this code -
2. Re: RemoteHome returns strange Object
fbiaggi Feb 4, 2005 12:08 PM (in response to pvanonselen)Hi,
simply cast to the remote interface -
3. Re: RemoteHome returns strange Object
starksm64 Feb 4, 2005 5:15 PM (in response to pvanonselen)Your solution is completely unnecessary and in fact was already done on the jboss side. As I replied in the other post all that matters are the interfaces as that is the contract.