Operating System - OpenVMS
1748095 Members
5687 Online
108758 Solutions
New Discussion

Call a C function from JAVA in OpenVMS using RPC(Remote Procedure Calls)

 
ahmedm
Occasional Contributor

Call a C function from JAVA in OpenVMS using RPC(Remote Procedure Calls)

I have a requirement to call a function using RPC(Remote Procedure Calls) from JAVA in OpenVMS.  The RPC server runs on the OpenVMS sytem. I have the function prototypes defined in an IDL file and their equivalent C routines. I must be able to connect to the RPC server from JAVA and call the C routines passing the required parameters. 

 

It will be really helpful if someone could suggest me the way forward and post me with any example. I have tried WSIT but it doesn't suit my purpose.

Thanks for your help.

 

OpenVMS v8.3 AlphaServer

Java 1.4.2

1 REPLY 1
Ph Vouters
Valued Contributor

Re: Call a C function from JAVA in OpenVMS using RPC(Remote Procedure Calls)

Could the solution at http://vouters.dyndns.org/tima/OpenVMS-TCPIP-ONC-RPC-example.html be of any help to you ? If you are only fluent with Java programming, please do consider the pure Java RPC solution I mention in this paper. However, this later will have an additional cost for you.

 

As an alternative and instead of writing a JNI to call the ONC RPC methods, you can as well under Java for OpenVMS IA64 V6.x directly interface TCP/IP ONC RPC using Java Native Access (JNA). If you are not aware of JNA, here are a set of VMS examples at http://vouters.dyndns.org/tima/OpenVMS-IA64-Java-JNA-libffi-Porting_JNA_to_OpenVMS_Itanium_servers.html