lvcha
08-30-2006, 02:30 AM
I want to use aop to enclose remote call. So actually I have no target, the Advisor do the remotecal..
ProxyFactoryObject proxyobj = new ProxyFactoryObject();
RemoteCallAdvisor advicer = new RemoteCallAdvisor();
advicer.Advice = new RemoteCallAdvice();
proxyobj.AddAdvisor(advicer);
proxyobj.AddInterface(typeof(IHelloWorld));
proxyobj.GetObject();
but the proxyobj.GetObject(); throw an argumentexception at
"InterfaceMapping mapping = targetType.GetInterfaceMap(intf);"
I try the same code in spring of java,it work well.
any suggestion?
thanks a lot!!
ProxyFactoryObject proxyobj = new ProxyFactoryObject();
RemoteCallAdvisor advicer = new RemoteCallAdvisor();
advicer.Advice = new RemoteCallAdvice();
proxyobj.AddAdvisor(advicer);
proxyobj.AddInterface(typeof(IHelloWorld));
proxyobj.GetObject();
but the proxyobj.GetObject(); throw an argumentexception at
"InterfaceMapping mapping = targetType.GetInterfaceMap(intf);"
I try the same code in spring of java,it work well.
any suggestion?
thanks a lot!!