If both ejb's are in the same ear, simplest way is to inject the ejb using @EJB. No explicit JNDI names are needed then - the container handles that for you.
I am trying to access an EJB from another EJB
Please let me know if you know some other way of doing it for all the EJB so that any EJB can be called from the EJB context.
And then we all jump out and yell "surprise! we got you this tiny ad!"
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free