Originally posted by Weltchy
View Post
In the server:-
'Use as singleton
RemotingConfiguration.RegisterWellKnownServiceType ( _
GetType(RemotingLib.Wibble), "wibble", _
WellKnownObjectMode.Singleton)
then
dim a as new Wibble
This does not give a proxy. It gives a new instance of the real object. I **thought** that once a type was registered then ALL instantiation was supposed to be done by the remoting infrastructure, patently not the case.
As a result of the above then in the client if you do:-
Activator.GetObject(GetType(Wibble),"ipc//blah blah" then this will create a new object (since the one created at the server end was a real object) and then return a transparent proxy to it.
Granted changing the server code to use Activator instead of creating one and everything is fine.
-----------------------------------------
Real winge at the moment is binary channel sinks.

Server creates serializable object (there is an IPCServer channel). Can't remot to the bloody thing because there is no client sink. Try as I might I can't find the right combination of channel registration. Bah, humbug.
Anyway, ultimately I need to seperate the code to that which is called from remoting and that which is executed on the server in order to reduce number of round trips.



, I really do dislike some of their design decisions, but hey I like checked exceptions and they think nothing is better... But i do like a lot of the C#/.net stuff as well (not to make it sound like I hate them, as I don't)
just a few lines of config! more of java thing though
Comment