The use of jndi properties for local ejb objects is not necessary.
You will need to show us more code and failure stack traces in order to determine the cause of your problem.
My code is like
ALocal m = (ALocal) context.lookup("ejb:" + appName + "/" + moduleName + "/" + distinctName + "/" + beanName + "!" + viewClassName);
where ALocal is a local interface of my EJB
when I am triying to invoke I got
Could not find view com.xyz.A.ALocal for EJB A
What should I fix, if I dont want to go to injection