473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

My object's remoting proxy is WAY huge on the client

I have an object A, who contains a bunch of maps of other objects B, C, D.
Some maps are internal, some are private. Object A inherits from
MarshalByRefObject, whereas B, C and D are all marked Serializable.

On client computers, I'll obtain a remoting proxy to object A (often proxies
to many A's as this is a peer to peer app). Trouble is, if object A's
interal maps of B, C and D are large, A's proxies on client computers get
large too. I'm assuming that somehow A's proxy contains A's internal maps.

I don't want that. All I really want is for A's proxy to have a few public
methods in it and NO data. Any suggestions? Is there a way I can customize
the proxy to only contain the stuff I want?
Jul 21 '05 #1
1 1159
Just to verify, how to do you know that the proxy is getting large? Have you
serialized the contents of the ObjRef to disk and looked at it?

As you mentioned, if A is MarshalByRef and that's the only object you pass
around, then your large objects should not be crossing the remoting
boundary. Can you post a small code example to demonstrate the issue and how
you concluded the proxy is large?

Ken
"0to60" <ho****************@yahoo.com> wrote in message
news:JN********************@comcast.com...
I have an object A, who contains a bunch of maps of other objects B, C, D.
Some maps are internal, some are private. Object A inherits from
MarshalByRefObject, whereas B, C and D are all marked Serializable.

On client computers, I'll obtain a remoting proxy to object A (often proxies to many A's as this is a peer to peer app). Trouble is, if object A's
interal maps of B, C and D are large, A's proxies on client computers get
large too. I'm assuming that somehow A's proxy contains A's internal maps.
I don't want that. All I really want is for A's proxy to have a few public methods in it and NO data. Any suggestions? Is there a way I can customize the proxy to only contain the stuff I want?

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
0
by: Tim Shih | last post by:
Hi, I am implementing a server/client application using remoting. The server communicates with the client by having the client pass an object over to the server when it logs in. The object...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
3
by: Skip | last post by:
Hi, I'm new to .NET remoting and there's something I'm having real trouble with. Basically, I'd like to create a component that can act as a server and as a client (can send messages and receive...
14
by: Ray5531 | last post by:
I have a console application in my local computer which I like to use remoting in it,to instanciate an object (MyClass.dll) in a web application(its bin folder) in a completely seperated box(in the...
1
by: 0to60 | last post by:
I have an object A, who contains a bunch of maps of other objects B, C, D. Some maps are internal, some are private. Object A inherits from MarshalByRefObject, whereas B, C and D are all marked...
12
by: John | last post by:
I have a AppDomain ID, how do I get the instance of the AppDomain Object? Please advice. Thanks in advance. John
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, I am using dotnet remoting with a binarry formatter. I have a property that returns a memorystream that has had a file loaded into it. When I try to access this property though I get an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.