Hi there,
I'm using DFC classes in my web application but I've problems with IDfSysObject class because it is not serializable, can we make IDfSysObject serializable ??
i'm using DFC 6.6.
regards.
If it's not serializable then you can't make it serializable.
Why do you need it to be serializable? This is a transient representation of an object in the repository.
As it is IdfSysObject is an interface and there will actually be a class that implements this at runtime that API calls will return.
I believe that WDK does make some objects serializable to support failover to another app server. To Andy's point, it would help us if you told us why you need to serialize it.
i want to use it in RMI server/client, code it must be serializable so i can transfer IDfSysObject from client to server.
thanks in advance.
First off IDfSysObject is an interface so you won't be using this to transfer content you'd be looking to whatever the instance class is backing it, which could be one of many, even more so if you have TBO classes in the mix.
You may be better passing the underlying 'index' values, such as r_object_id from the client to the server such that the server can get the object and perform whatever actions it needs to on it.
thanks for the reply Andy, but my problem is RMI client only has an access to Documentum, server doesn't have an access.
If the server has no access to documentum it is probably better to pass only the data that the server needs to do whatever logic it needs to, i.e. create a DTO that has only what the server needs to do its processing.