If you are using the ejb: namespace approach then you don't need the jndi.properties file nor the jboss.naming specific properties in your intial context. All you need is this https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI and the jboss-ejb-client.properties.