How to marshal a proxy to freeze db?

in Help Center
hi,
In the 33.7.2 section of the manu, it is said that :
The proxy returned by the connection’s createProxy operation can only be used in the server process and cannot be marshaled or stringified by proxyToString.
It seems to mean that this type of proxy can not be freezed to a database.
Although I am not very sure about it but in my program a execption "Cannot marshal a fixed reference" always was thrown.
Now I faced a problem how to persistently save a callback proxy to database in bidir situations. Maybe I can save the connection->toString() , but I don't know how to simply get the proxy reversely from this string.
There must be some easy way to marshal this type of proxy to freeze and hope getting helps.
Thanks in advance.
OrNot
In the 33.7.2 section of the manu, it is said that :
The proxy returned by the connection’s createProxy operation can only be used in the server process and cannot be marshaled or stringified by proxyToString.
It seems to mean that this type of proxy can not be freezed to a database.
Although I am not very sure about it but in my program a execption "Cannot marshal a fixed reference" always was thrown.
Now I faced a problem how to persistently save a callback proxy to database in bidir situations. Maybe I can save the connection->toString() , but I don't know how to simply get the proxy reversely from this string.
There must be some easy way to marshal this type of proxy to freeze and hope getting helps.
Thanks in advance.
OrNot
0
Comments
If I store the identity and create one new proxy, I am afraid that the new one would not work correctly in bidir mode.
That's to say, there is no way to achieve what I had thought?
I am always tring to find a solution to deal with the situation that
the server was accidently turned off and restarted but I hope the client does
not realize this and the c/s can contiune to work as before ( assuming during the peirod of the server's down ,no requests/response between them).
The main reason is that the client can not be restarted by us.
Of course this has beyonded the scope of ICE ,but you must have many experiences and may give me some advice. (
Hi,
Can someone please define "fixed proxy" for me? I didn't turn anything up in the docs.
The freeze documentation shows proxies being stored using freeze (see NodeDict and NodeRef in the file system example). If the proxy is using endpoints that define the machine on which the proxy is stored (localhost, or whatever), is this OK?
Thanks for any info.
-- Andrew Bell
Iowa State University - Center for Survey Statistics & Methodology
[email protected]
You are right, our documentation doesn't use this term. We will either change the documentation, or I will not use the term "fixed proxy" here anymore
You can of course store all other proxies in Freeze (direct proxies or indirect proxies), just not those which are created with Connection::createProxy().