As Itamar suggested, the best alternative, if both Codec and Applet are on the same box, is to use JNI (the answer assumes you are using IPC in the clasical context i.e.: a pipe or shared memoy scheme which allows communication between to applications sharing a common execution context).
On the other hand, you mention a JMF applet, which implies a network connection.
If this is the case, then you are left with three options:
1) Again JNI to establish a bridge between the Codec and a Java based server using any port to transfer the data. (Simple to start with but gets complicated if you involve firewalls)
2) A JNI bridge from codec to a Java Server that uses RMI to tranfer the data. (Not as simple but solves the Firewall problem)
3) A C++ Corba server that sends the data to the applet dirrectly. More complex to set up on both ends, but will eventualy be more efficient since CORBA IIOP is the prefered mechanism for network based cross architecture communication.
Main Topics
Browse All Topics





by: ItamarPosted on 2001-02-04 at 10:31:53ID: 5810967
Hi,
How about using JNI to read the date from the c++ codec.
I know its not much but did you explore this posibility?
Itamar