Hi,
I'm interested on writing Java to RMS interface but before proceeding I would like ask this questions:
1. Did such interface (Java to RMS) exists? I don't want to reinvent the wheel!
2. Have someone did JNI in OpenVMS x86? If so, some advice appreciated.
JNI - Anyone?
-
- Senior Member
- Posts: 504
- Joined: Fri Apr 17, 2020 7:31 pm
- Reputation: 0
- Location: Rhode Island, USA
- Status: Offline
- Contact:
Re: JNI - Anyone?
I have dabbled a bit in JNI on VMS. Alpha, Itanium and x86-64.
I have done stuff at 3 levels.
1) Pure JNI.
This is documented in various documentation.
I have also written about it a few times, including:
https://www.vajhoej.dk/arne/articles/call2.html#jvm_jni
https://www.vajhoej.dk/arne/articles/vm ... tml#gr2nat (actually Groovy not Java, but the JNI stuff is all the same)
2) VMSCALL.
I have a Java library for calling native function residing in a VMS shareable image.
(it calls some JNI code that use LIB$FIND_IMAGE_SYMBOL and LIB$CALLG to do the actual call)
Deep dive here:
https://www.vajhoej.dk/arne/articles/vmstd17.html
3) ISAM.
I have a Java library for accessing VMS RMS index-sequential files based on annotations on fields in a class.
Mentioned here:
http://www.vajhoej.dk/arne/articles/nosql1.html#vms
And used here:
https://www.vajhoej.dk/arne/articles/vmstd3.html
https://www.vajhoej.dk/arne/articles/vmstd6.html
https://www.vajhoej.dk/arne/articles/vmstd9.html
(mostly from Jython, but the mapping is all Java)
I have done stuff at 3 levels.
1) Pure JNI.
This is documented in various documentation.
I have also written about it a few times, including:
https://www.vajhoej.dk/arne/articles/call2.html#jvm_jni
https://www.vajhoej.dk/arne/articles/vm ... tml#gr2nat (actually Groovy not Java, but the JNI stuff is all the same)
2) VMSCALL.
I have a Java library for calling native function residing in a VMS shareable image.
(it calls some JNI code that use LIB$FIND_IMAGE_SYMBOL and LIB$CALLG to do the actual call)
Deep dive here:
https://www.vajhoej.dk/arne/articles/vmstd17.html
3) ISAM.
I have a Java library for accessing VMS RMS index-sequential files based on annotations on fields in a class.
Mentioned here:
http://www.vajhoej.dk/arne/articles/nosql1.html#vms
And used here:
https://www.vajhoej.dk/arne/articles/vmstd3.html
https://www.vajhoej.dk/arne/articles/vmstd6.html
https://www.vajhoej.dk/arne/articles/vmstd9.html
(mostly from Jython, but the mapping is all Java)
-
Topic author - Contributor
- Posts: 11
- Joined: Sun Jul 21, 2024 11:37 am
- Reputation: 0
- Status: Offline
Re: JNI - Anyone?
Cool!
IMHO would be nice to have all those stuff in github.
IMHO would be nice to have all those stuff in github.