Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Serializable visad-classes

Hi together,

> ScalarMap and ConstantMap are Serializable. DataReferenceImpl
> is not Serializable since it's design only works on the JVM
> where it was constructed. When you need to send a
> "DataReferenceImpl dr", construct "new RemoteDataReferenceImpl(dr)"
> and send it - on the receiving JVM it must be delcared as the
> RemoteDataReference interface.

That should be work so far, thanks Bill. But there seems to occure one more
problem. I don't have a RemoteDisplay on the receiving JVM. So I need to
have a DataReference instead of a RemoteDataReference because I see no way
to add a RemoteDataReference to a local Display. I tried to construct a
local DataReference via

DataReference reference = new DataReferenceImpl(remoteReference.getName());
reference.setData(remoteReference.getData());

But there I get an Exception because the Data I get from remoteReference
certainly is also a RemoteData which cannot be linked to a DataReference. So
how can I create a local DataReference in the receiving JVM out of the
RemoteDataReference? Or is there a way to add the RemoteDataReference to a
local Display?

Thanks, Mathias


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690