| 1. |
What Is Fundamental Of Published Or Precreated Objects In Remoting? |
|
Answer» In scenarios of singleton or single call the OBJECTS are CREATED dynamically. But in situations where you want to precreate object and publish it you will use published object scenarios. DIM obj as new objRemote As shown in above SAMPLE following changes will be needed on server side. Remoting Configuration.Register WellKnown ServiceType is REPLACED by Remoting Services .Marshal (obj,"Remote Object") where "obj" is the precreated objected on the server whose value is initialized to 100. In scenarios of singleton or single call the objects are created dynamically. But in situations where you want to precreate object and publish it you will use published object scenarios. Dim obj as new objRemote As shown in above sample following changes will be needed on server side. Remoting Configuration.Register WellKnown ServiceType is replaced by Remoting Services .Marshal (obj,"Remote Object") where "obj" is the precreated objected on the server whose value is initialized to 100. |
|