I'm pretty sure I could do that, even if it meant retaining the address
using name/token services. However, the assembler program is not
re-usable, so I need a fresh copy for each call.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of Seymour J Metz
Sent: Monday, February 13, 2023 1:58 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Are JNI required to be re-entrant and/or re-usable?

Does the Java runtime allow loading and stashing the address of the
routine he first time you need it and serializing access to it?


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf
of Steve Austin [steve.aus...@macro4.com]
Sent: Monday, February 13, 2023 8:00 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Are JNI required to be re-entrant and/or re-usable?

I have a Java JNI routine written in C and used as a wrapper to a
venerable assembler program. The assembler program is neither re-entrant
or reusable and to reflect this the JNI routine is linked RENT=NO and
REUS=NO. However, the RENT=NO and REUS=NO does not appear to be being
honoured, as the 1st call works and subsequent calls fail in the assembler
routine. I imagine I could use LINK/LINKX to get around this, but I'd like
to understand any JNI restrictions on z/OS. Thanks

Steve

--
This e-mail message has been scanned and cleared by Google Message
Security and the UNICOM Global security systems. This message is for the
named person's use only. If you receive this message in error, please
delete it and notify the sender.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

-- 
This e-mail message has been scanned and cleared by Google Message Security 
and the UNICOM Global security systems. This message is for the named 
person's use only. If you receive this message in error, please delete it 
and notify the sender. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to