I found the solution! All I needed was to add this line into my client code: jndiProps.put("jboss.naming.client.ejb.context", true);
I found it in a comment posted to this question: https://community.jboss.org/message/747360?_sscc=t
Reply to this message by going to Community
Start a new discussion in Beginner's Corner at Community