View Full Version : First Time Remoting Question
telmore
11-29-2005, 09:33 PM
I am trying to implement a simple test of the Spring remoting using the example documented at
http://opensource2.atlassian.com/confluence/spring/display/NET/Enterprise+Services+Support
When I run this example, I get the following
...
System.Reflection.ReflectionTypeLoadException: One or more of the types in the assembly unable to load.
...
Spring does create the DLL file.
Has anyone else created a test using this sample?
Regards,
Tony
Mark Pollack
11-29-2005, 10:06 PM
Hi,
There are a few glitches in the docs and code there...Bruno was nice enough to just recently to review that example - which really needs to be fleshed out better. The link to that post is http://forum.springframework.net/viewtopic.php?t=277
Let me know if that helps you out. Again, we definitely need to clean that up.
Cheers,
Mark
twalker
12-30-2005, 03:59 PM
From the 1.1.0 Preview 2 Reference Documentation I am assuming that we still need to have our SAO server object inherit from MarshallByRefObject. I just wanted to confirm this because I had read somewhere that there was talk that Spring was going to handle this automatically.
Thanks,
Mark Pollack
12-30-2005, 05:49 PM
Hi,
Yes, that is correct, SaoServicExporter in 1.1.0 P2 still requires inheriting from MBR. The functionality to handle this automatically was added shortly afterwards and can be found in the daily builds.
I would also like to create an additional class, or rename SaoServiceExporter to RemotingServiceExporter, that adds support for programmatic type registration for the MBR object. This wasn't necessary before we were able to do automatic generation of the MBR object since it could be configured using standard .NET remoting configuration. The new options would would let you register it as either as a SAO singleton/single-call or CAO object.
Cheers,
Mark
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.