[vtkusers] Returning datas as java array
Simon Chatelain
simon.chatelain at epfl.ch
Wed Nov 6 11:03:14 EST 2002
Thanks for the suggestion. I think i can use this to solve my problem.
But I tra a very simple test, ased upon the SocketClient/SocketServer
example, and it doesn't work. I have the error :
Generic Warning: In
/home/schatela/Orthoviewer/Orthoviewer/vtk40_151002/VTK/Parallel/vtkSocketCommunicator.cxx,
line 131
Could not send message.
Can someone explain what i am doing wrong ?
My sample code is in attachement.
Thanks
Simon Chatelain
>> Hello,
>>
>> The wrapper i mentionned is the vtkWrappJava executable who generate
>> the JNI c++ and java class.
>> And the problem is that c++ char type is a 8 bits type and the Java
>> char who compose a String is 16 bit unicode
>> character. So i cannot recast the string into byte, the datas are not
>> similar.
>>
>> The general problem is to transfer a vtkImageData from a java
>> application to another via the Java-RMI system.
>
>
> Have you tried vtkSocketCommunicator/vtkSocketController? This
> already supports interprocess communciation, but with no rmi. If you
> are only trying to send the data from one process to another, this
> might be an alternative to rmi.
> -Jeff
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SocketClient.java
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021106/9382b15a/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: SocketCommunicator.java
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021106/9382b15a/attachment.txt>
More information about the vtkusers
mailing list