Click to See Complete Forum and Search --> : Invoking remote C function


Deepak
November 24th, 1999, 10:35 AM
Hi All,
I have a server process(on UNIX-C) is running in background.

Now On some occasion my Java programs(clients ,which are on different locations on network) need to send
some notification to server ,like if clients are saying that we have
finished.Server will do his job after receiving the notification.

Now the thing is how Java program will notify to C
program.The solution is whenever client want to notify the server invoke any Servers-C functions with the help of
JNI.After getting the notification server will do rest of his job.

Problem is as I have mentioned ,clients(Java programs) are on different machine so how can they invoke the C
function of server.As I know, for using the JNI all the Java and native codes should be on same machine.

What is the solution of this problem?.What technique should I adopt for this?.

Is there any other mechanism to send notification from Java program to C program.Like signals in C.

Hoping a prompt reply.


Deepak

jmcmanus
November 29th, 1999, 11:22 AM
If you had a C program running on a different system, how would it communicate with the server?

If it's via a socket, then you have no problem. Java makes it easy to use sockets and datagrams.

John McManus
System Engineer
Autometric, Inc
www.autometric.com