i'm trying to make this topology work :
I have a Java cprojet (Client) which'll communicate with an EJB1 project (stateless) and invoke it's methods (let's say i pass an integer A), then this EJB1 project will invoke EJB2's methods to do some operation like add(A,B) or whatever. (EJB1 and EJB2 are deployed in on a wildfly 13 server and all three programs are on the same machine, i'm just doing some testing)
I managed to do the communication between Client and EJB1 with a context lookup but i can't find a way to do the same between EJB1 and EJB2.
Here's the code for the context lookup between Client and EJB1